Changes in uspace/app/taskdump/taskdump.c [1ccafee:196a1439] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/taskdump/taskdump.c
r1ccafee r196a1439 41 41 #include <task.h> 42 42 #include <kernel/mm/as.h> 43 #include <sys/types.h>44 #include <sys/typefmt.h>45 43 #include <libarch/istate.h> 46 44 #include <macros.h> … … 95 93 rc = connect_task(task_id); 96 94 if (rc < 0) { 97 printf("Failed connecting to task % " PRIdTASKID ".\n", task_id);95 printf("Failed connecting to task %lld.\n", task_id); 98 96 return 1; 99 97 } … … 102 100 app_symtab = NULL; 103 101 104 printf("Dumping task '%s' (task ID % " PRIdTASKID ").\n", app_name, task_id);102 printf("Dumping task '%s' (task ID %lld).\n", app_name, task_id); 105 103 autoload_syms(); 106 104 putchar('\n'); … … 136 134 if (rc < 0) { 137 135 printf("Error connecting\n"); 138 printf("ipc_connect_task(% " PRIdTASKID ") -> %d ", task_id, rc);136 printf("ipc_connect_task(%lld) -> %d ", task_id, rc); 139 137 return rc; 140 138 } … … 247 245 printf("Threads:\n"); 248 246 for (i = 0; i < n_threads; i++) { 249 printf(" [%d] hash: %p\n", 1+i, thash_buf[i]);247 printf(" [%d] hash: 0x%lx\n", 1+i, thash_buf[i]); 250 248 251 249 thread_dump(thash_buf[i]); … … 291 289 printf("Address space areas:\n"); 292 290 for (i = 0; i < n_areas; i++) { 293 printf(" [%d] flags: %c%c%c%c base: %p size: %p\n", 1+i,291 printf(" [%d] flags: %c%c%c%c base: 0x%lx size: 0x%lx\n", 1+i, 294 292 (ainfo_buf[i].flags & AS_AREA_READ) ? 'R' : '-', 295 293 (ainfo_buf[i].flags & AS_AREA_WRITE) ? 'W' : '-', … … 330 328 331 329 sym_pc = fmt_sym_address(pc); 332 printf("Thread %p crashed at %s. FP = %p\n", thash, sym_pc, fp);330 printf("Thread 0x%lx crashed at %s. FP = 0x%lx\n", thash, sym_pc, fp); 333 331 free(sym_pc); 334 332
Note:
See TracChangeset
for help on using the changeset viewer.