Changeset d6ddeb7 in mainline for uspace/app/tester/stdio/logger2.c
- Timestamp:
- 2012-08-16T17:17:30Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e005f92
- Parents:
- ebbc8a74
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/stdio/logger2.c
rebbc8a74 rd6ddeb7 36 36 const char *test_logger2(void) 37 37 { 38 log_ context_t ctx_alpha = log_context_create("alpha");39 log_ context_t ctx_bravo = log_context_create("bravo");38 log_t log_alpha = log_create("alpha"); 39 log_t log_bravo = log_create("bravo"); 40 40 41 TPRINTF("Alpha context is %" PRIlogctx ".\n", ctx_alpha);42 TPRINTF("Bravo context is %" PRIlogctx ".\n", ctx_bravo);41 TPRINTF("Alpha context is %" PRIlogctx ".\n", log_alpha); 42 TPRINTF("Bravo context is %" PRIlogctx ".\n", log_bravo); 43 43 44 44 while (true) { … … 50 50 log_msg(level, "Printing level %d (%s).", 51 51 (int) level, log_level_str(level)); 52 log_ ctx_msg(ctx_alpha, level,53 "Printing level %d (%s) in alpha context.",52 log_log_msg(log_alpha, level, 53 "Printing level %d (%s) into alpha log.", 54 54 (int) level, log_level_str(level)); 55 log_ ctx_msg(ctx_bravo, level,56 "Printing level %d (%s) in bravo context.",55 log_log_msg(log_bravo, level, 56 "Printing level %d (%s) into bravo log.", 57 57 (int) level, log_level_str(level)); 58 58 async_usleep(1000 * 100);
Note:
See TracChangeset
for help on using the changeset viewer.