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

Changeset fb6f1a5 in mainline for uspace/app/trace/trace.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/trace/trace.c

    rb79d450 rfb6f1a5  
    198198        printf("Threads:");
    199199        for (i = 0; i < n_threads; i++) {
    200                 printf(" [%d] (hash 0x%lx)", 1+i, thread_hash_buf[i]);
     200                printf(" [%d] (hash %p)", 1+i, thread_hash_buf[i]);
    201201        }
    202202        printf("\ntotal of %u threads\n", tb_needed / sizeof(uintptr_t));
     
    222222        case V_HASH:
    223223        case V_PTR:
    224                 printf("0x%08lx", val);
     224                printf("%p", val);
    225225                break;
    226226
     
    508508        }
    509509
    510         printf("Start tracing thread [%d] (hash 0x%lx).\n", thread_id, thread_hash);
     510        printf("Start tracing thread [%d] (hash %p).\n", thread_id, thread_hash);
    511511
    512512        while (!abort_trace) {
     
    552552                                break;
    553553                        case UDEBUG_EVENT_THREAD_E:
    554                                 printf("Thread 0x%lx exited.\n", val0);
     554                                printf("Thread %p exited.\n", val0);
    555555                                fibril_mutex_lock(&state_lock);
    556556                                abort_trace = true;
Note: See TracChangeset for help on using the changeset viewer.