Changeset da52547 in mainline for kernel/generic/src/debug/debug.c


Ignore:
Timestamp:
2010-07-02T10:16:38Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b5382d4f
Parents:
ad8f03d2
Message:

add early_putchar() which can be used to do early kernel console output for debugging purposes
(the availability of this feature depends on each platform and specific configuration, currently it works only on ia32/amd64 with EGA and no framebuffer)
instrument more kernel functions
mark some functions as no_instrument (context_restore(), overlaps(), main_bsp())

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/debug/debug.c

    rad8f03d2 rda52547  
    3636 */
    3737
    38 #ifdef CONFIG_LOG
     38#ifdef CONFIG_TRACE
    3939
    4040#include <debug.h>
     
    5252        if (symtab_name_lookup((uintptr_t) call_site, &call_site_sym,
    5353            &call_site_off) == EOK)
    54                 printf("%s:%p->%s\n", call_site_sym, call_site_off, fn_sym);
     54                printf("%s+%" PRIp "->%s\n", call_site_sym, call_site_off,
     55                    fn_sym);
    5556        else
    5657                printf("->%s\n", fn_sym);
     
    6667        if (symtab_name_lookup((uintptr_t) call_site, &call_site_sym,
    6768            &call_site_off) == EOK)
    68                 printf("%s:%p<-%s\n", call_site_sym, call_site_off, fn_sym);
     69                printf("%s+%" PRIp "<-%s\n", call_site_sym, call_site_off,
     70                    fn_sym);
    6971        else
    7072                printf("<-%s\n", fn_sym);
    7173}
    7274
    73 #endif /* CONFIG_LOG */
     75#endif /* CONFIG_TRACE */
    7476
    7577/** @}
Note: See TracChangeset for help on using the changeset viewer.