Changeset 19f24fd in mainline for uspace/app/taskdump/taskdump.c
- Timestamp:
- 2010-02-05T22:25:52Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- dafa2d04
- Parents:
- 83349b03 (diff), d42976c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/taskdump/taskdump.c
r83349b03 r19f24fd 41 41 #include <task.h> 42 42 #include <kernel/mm/as.h> 43 #include <sys/types.h> 44 #include <sys/typefmt.h> 43 45 #include <libarch/istate.h> 44 46 #include <macros.h> … … 93 95 rc = connect_task(task_id); 94 96 if (rc < 0) { 95 printf("Failed connecting to task % lld.\n", task_id);97 printf("Failed connecting to task %" PRIdTASKID ".\n", task_id); 96 98 return 1; 97 99 } … … 100 102 app_symtab = NULL; 101 103 102 printf("Dumping task '%s' (task ID % lld).\n", app_name, task_id);104 printf("Dumping task '%s' (task ID %" PRIdTASKID ").\n", app_name, task_id); 103 105 autoload_syms(); 104 106 putchar('\n'); … … 134 136 if (rc < 0) { 135 137 printf("Error connecting\n"); 136 printf("ipc_connect_task(% lld) -> %d ", task_id, rc);138 printf("ipc_connect_task(%" PRIdTASKID ") -> %d ", task_id, rc); 137 139 return rc; 138 140 } … … 245 247 printf("Threads:\n"); 246 248 for (i = 0; i < n_threads; i++) { 247 printf(" [%d] hash: 0x%lx\n", 1+i, thash_buf[i]);249 printf(" [%d] hash: %p\n", 1+i, thash_buf[i]); 248 250 249 251 thread_dump(thash_buf[i]); … … 289 291 printf("Address space areas:\n"); 290 292 for (i = 0; i < n_areas; i++) { 291 printf(" [%d] flags: %c%c%c%c base: 0x%lx size: 0x%lx\n", 1+i,293 printf(" [%d] flags: %c%c%c%c base: %p size: %p\n", 1+i, 292 294 (ainfo_buf[i].flags & AS_AREA_READ) ? 'R' : '-', 293 295 (ainfo_buf[i].flags & AS_AREA_WRITE) ? 'W' : '-', … … 328 330 329 331 sym_pc = fmt_sym_address(pc); 330 printf("Thread 0x%lx crashed at %s. FP = 0x%lx\n", thash, sym_pc, fp);332 printf("Thread %p crashed at %s. FP = %p\n", thash, sym_pc, fp); 331 333 free(sym_pc); 332 334
Note:
See TracChangeset
for help on using the changeset viewer.