Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset fb6f1a5 in mainline for uspace/app/taskdump/taskdump.c


Ignore:
Timestamp:
2010-01-27T21:44:52Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
1ccafee
Parents:
b79d450
Message:

Implement some of C99 inttypes.h header (formatting macros for stdint.h). Use in appropriate places. Also replace use of 0x%lx with %p.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/taskdump/taskdump.c

    rb79d450 rfb6f1a5  
    245245        printf("Threads:\n");
    246246        for (i = 0; i < n_threads; i++) {
    247                 printf(" [%d] hash: 0x%lx\n", 1+i, thash_buf[i]);
     247                printf(" [%d] hash: %p\n", 1+i, thash_buf[i]);
    248248
    249249                thread_dump(thash_buf[i]);
     
    289289        printf("Address space areas:\n");
    290290        for (i = 0; i < n_areas; i++) {
    291                 printf(" [%d] flags: %c%c%c%c base: 0x%lx size: 0x%lx\n", 1+i,
     291                printf(" [%d] flags: %c%c%c%c base: %p size: %p\n", 1+i,
    292292                    (ainfo_buf[i].flags & AS_AREA_READ) ? 'R' : '-',
    293293                    (ainfo_buf[i].flags & AS_AREA_WRITE) ? 'W' : '-',
     
    328328
    329329        sym_pc = fmt_sym_address(pc);
    330         printf("Thread 0x%lx crashed at %s. FP = 0x%lx\n", thash, sym_pc, fp);
     330        printf("Thread %p crashed at %s. FP = %p\n", thash, sym_pc, fp);
    331331        free(sym_pc);
    332332
Note: See TracChangeset for help on using the changeset viewer.