Changeset a9bbe48d in mainline for uspace/app
- Timestamp:
- 2010-01-27T22:23:50Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e7aa9f4
- Parents:
- 95e6c4f (diff), 1ccafee (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. - Location:
- uspace/app
- Files:
-
- 4 edited
-
mkfat/mkfat.c (modified) (2 diffs)
-
taskdump/taskdump.c (modified) (7 diffs)
-
trace/ipcp.c (modified) (4 diffs)
-
trace/trace.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/mkfat/mkfat.c
r95e6c4f ra9bbe48d 44 44 #include <devmap.h> 45 45 #include <byteorder.h> 46 #include <sys/types.h> 47 #include <sys/typefmt.h> 48 #include <inttypes.h> 46 49 #include <errno.h> 47 50 #include "fat.h" … … 157 160 printf(NAME ": Warning, failed to obtain block device size.\n"); 158 161 } else { 159 printf(NAME ": Block device has %llu blocks.\n", dev_nblocks); 162 printf(NAME ": Block device has %" PRIuBN " blocks.\n", 163 dev_nblocks); 160 164 cfg.total_sectors = dev_nblocks; 161 165 } -
uspace/app/taskdump/taskdump.c
r95e6c4f ra9bbe48d 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 -
uspace/app/trace/ipcp.c
r95e6c4f ra9bbe48d 36 36 #include <stdlib.h> 37 37 #include <adt/hash_table.h> 38 #include <sys/typefmt.h> 38 39 39 40 #include "ipc_desc.h" … … 200 201 201 202 if ((display_mask & DM_IPC) != 0) { 202 printf("Call ID: 0x%lx, phone: %d, proto: %s, method: ", hash,203 printf("Call ID: %p, phone: %d, proto: %s, method: ", hash, 203 204 phone, (proto ? proto->name : "n/a")); 204 205 ipc_m_print(proto, IPC_GET_METHOD(*call)); 205 printf(" args: (%lu, %lu, %lu, %lu, %lu)\n", args[1], args[2], 206 printf(" args: (%" PRIuIPCARG ", %" PRIuIPCARG ", %" PRIuIPCARG 207 ", %" PRIuIPCARG ", %" PRIuIPCARG ")\n", args[1], args[2], 206 208 args[3], args[4], args[5]); 207 209 } … … 279 281 280 282 if ((display_mask & DM_IPC) != 0) { 281 printf("Response to 0x%lx: retval=%ld, args = (%lu, %lu, %lu, %lu, %lu)\n", 282 hash, retval, IPC_GET_ARG1(*answer), 283 IPC_GET_ARG2(*answer), IPC_GET_ARG3(*answer), 284 IPC_GET_ARG4(*answer), IPC_GET_ARG5(*answer)); 283 printf("Response to %p: retval=%ld, args = (%" PRIuIPCARG 284 ", %" PRIuIPCARG ", %" PRIuIPCARG ", %" PRIuIPCARG 285 ", %" PRIuIPCARG ")\n", 286 hash, retval, IPC_GET_ARG1(*answer), 287 IPC_GET_ARG2(*answer), IPC_GET_ARG3(*answer), 288 IPC_GET_ARG4(*answer), IPC_GET_ARG5(*answer)); 285 289 } 286 290 … … 336 340 /* Not a response */ 337 341 if ((display_mask & DM_IPC) != 0) { 338 printf("Not a response (hash 0x%lx)\n", hash);342 printf("Not a response (hash %p)\n", hash); 339 343 } 340 344 return; -
uspace/app/trace/trace.c
r95e6c4f ra9bbe48d 49 49 #include <io/keycode.h> 50 50 #include <fibril_synch.h> 51 #include <sys/types.h> 52 #include <sys/typefmt.h> 51 53 52 54 #include <libc.h> … … 159 161 if (rc < 0) { 160 162 printf("Error connecting\n"); 161 printf("ipc_connect_task(% lld) -> %d ", task_id, rc);163 printf("ipc_connect_task(%" PRIdTASKID ") -> %d ", task_id, rc); 162 164 return rc; 163 165 } … … 198 200 printf("Threads:"); 199 201 for (i = 0; i < n_threads; i++) { 200 printf(" [%d] (hash 0x%lx)", 1+i, thread_hash_buf[i]);202 printf(" [%d] (hash %p)", 1+i, thread_hash_buf[i]); 201 203 } 202 204 printf("\ntotal of %u threads\n", tb_needed / sizeof(uintptr_t)); … … 222 224 case V_HASH: 223 225 case V_PTR: 224 printf(" 0x%08lx", val);226 printf("%p", val); 225 227 break; 226 228 … … 275 277 276 278 putchar('('); 277 if (n > 0) printf("% ld", sc_args[0]);279 if (n > 0) printf("%" PRIdSYSARG, sc_args[0]); 278 280 for (i = 1; i < n; i++) { 279 printf(", % ld", sc_args[i]);281 printf(", %" PRIdSYSARG, sc_args[i]); 280 282 } 281 283 putchar(')'); … … 508 510 } 509 511 510 printf("Start tracing thread [%d] (hash 0x%lx).\n", thread_id, thread_hash);512 printf("Start tracing thread [%d] (hash %p).\n", thread_id, thread_hash); 511 513 512 514 while (!abort_trace) { … … 552 554 break; 553 555 case UDEBUG_EVENT_THREAD_E: 554 printf("Thread 0x%lxexited.\n", val0);556 printf("Thread %p exited.\n", val0); 555 557 fibril_mutex_lock(&state_lock); 556 558 abort_trace = true; … … 972 974 rc = connect_task(task_id); 973 975 if (rc < 0) { 974 printf("Failed connecting to task % lld.\n", task_id);976 printf("Failed connecting to task %" PRIdTASKID ".\n", task_id); 975 977 return 1; 976 978 } 977 979 978 printf("Connected to task % lld.\n", task_id);980 printf("Connected to task %" PRIdTASKID ".\n", task_id); 979 981 980 982 if (task_ldr != NULL)
Note:
See TracChangeset
for help on using the changeset viewer.
