Changeset d6ddeb7 in mainline for uspace/app/tester/stdio/logger2.c


Ignore:
Timestamp:
2012-08-16T17:17:30Z (12 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e005f92
Parents:
ebbc8a74
Message:

Log context is actually a log

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tester/stdio/logger2.c

    rebbc8a74 rd6ddeb7  
    3636const char *test_logger2(void)
    3737{
    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");
    4040
    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);
    4343
    4444        while (true) {
     
    5050                        log_msg(level, "Printing level %d (%s).",
    5151                            (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.",
    5454                            (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.",
    5757                            (int) level, log_level_str(level));
    5858                        async_usleep(1000 * 100);
Note: See TracChangeset for help on using the changeset viewer.