Changes in / [a9bbe48d:95e6c4f] in mainline
- Location:
- uspace
- Files:
-
- 10 deleted
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/mkfat/mkfat.c
ra9bbe48d r95e6c4f 44 44 #include <devmap.h> 45 45 #include <byteorder.h> 46 #include <sys/types.h>47 #include <sys/typefmt.h>48 #include <inttypes.h>49 46 #include <errno.h> 50 47 #include "fat.h" … … 160 157 printf(NAME ": Warning, failed to obtain block device size.\n"); 161 158 } else { 162 printf(NAME ": Block device has %" PRIuBN " blocks.\n", 163 dev_nblocks); 159 printf(NAME ": Block device has %llu blocks.\n", dev_nblocks); 164 160 cfg.total_sectors = dev_nblocks; 165 161 } -
uspace/app/taskdump/taskdump.c
ra9bbe48d r95e6c4f 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 -
uspace/app/trace/ipcp.c
ra9bbe48d r95e6c4f 36 36 #include <stdlib.h> 37 37 #include <adt/hash_table.h> 38 #include <sys/typefmt.h>39 38 40 39 #include "ipc_desc.h" … … 201 200 202 201 if ((display_mask & DM_IPC) != 0) { 203 printf("Call ID: %p, phone: %d, proto: %s, method: ", hash,202 printf("Call ID: 0x%lx, phone: %d, proto: %s, method: ", hash, 204 203 phone, (proto ? proto->name : "n/a")); 205 204 ipc_m_print(proto, IPC_GET_METHOD(*call)); 206 printf(" args: (%" PRIuIPCARG ", %" PRIuIPCARG ", %" PRIuIPCARG 207 ", %" PRIuIPCARG ", %" PRIuIPCARG ")\n", args[1], args[2], 205 printf(" args: (%lu, %lu, %lu, %lu, %lu)\n", args[1], args[2], 208 206 args[3], args[4], args[5]); 209 207 } … … 281 279 282 280 if ((display_mask & DM_IPC) != 0) { 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)); 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)); 289 285 } 290 286 … … 340 336 /* Not a response */ 341 337 if ((display_mask & DM_IPC) != 0) { 342 printf("Not a response (hash %p)\n", hash);338 printf("Not a response (hash 0x%lx)\n", hash); 343 339 } 344 340 return; -
uspace/app/trace/trace.c
ra9bbe48d r95e6c4f 49 49 #include <io/keycode.h> 50 50 #include <fibril_synch.h> 51 #include <sys/types.h>52 #include <sys/typefmt.h>53 51 54 52 #include <libc.h> … … 161 159 if (rc < 0) { 162 160 printf("Error connecting\n"); 163 printf("ipc_connect_task(% " PRIdTASKID ") -> %d ", task_id, rc);161 printf("ipc_connect_task(%lld) -> %d ", task_id, rc); 164 162 return rc; 165 163 } … … 200 198 printf("Threads:"); 201 199 for (i = 0; i < n_threads; i++) { 202 printf(" [%d] (hash %p)", 1+i, thread_hash_buf[i]);200 printf(" [%d] (hash 0x%lx)", 1+i, thread_hash_buf[i]); 203 201 } 204 202 printf("\ntotal of %u threads\n", tb_needed / sizeof(uintptr_t)); … … 224 222 case V_HASH: 225 223 case V_PTR: 226 printf(" %p", val);224 printf("0x%08lx", val); 227 225 break; 228 226 … … 277 275 278 276 putchar('('); 279 if (n > 0) printf("% " PRIdSYSARG, sc_args[0]);277 if (n > 0) printf("%ld", sc_args[0]); 280 278 for (i = 1; i < n; i++) { 281 printf(", % " PRIdSYSARG, sc_args[i]);279 printf(", %ld", sc_args[i]); 282 280 } 283 281 putchar(')'); … … 510 508 } 511 509 512 printf("Start tracing thread [%d] (hash %p).\n", thread_id, thread_hash);510 printf("Start tracing thread [%d] (hash 0x%lx).\n", thread_id, thread_hash); 513 511 514 512 while (!abort_trace) { … … 554 552 break; 555 553 case UDEBUG_EVENT_THREAD_E: 556 printf("Thread %pexited.\n", val0);554 printf("Thread 0x%lx exited.\n", val0); 557 555 fibril_mutex_lock(&state_lock); 558 556 abort_trace = true; … … 974 972 rc = connect_task(task_id); 975 973 if (rc < 0) { 976 printf("Failed connecting to task % " PRIdTASKID ".\n", task_id);974 printf("Failed connecting to task %lld.\n", task_id); 977 975 return 1; 978 976 } 979 977 980 printf("Connected to task % " PRIdTASKID ".\n", task_id);978 printf("Connected to task %lld.\n", task_id); 981 979 982 980 if (task_ldr != NULL) -
uspace/srv/bd/ata_bd/ata_bd.c
ra9bbe48d r95e6c4f 59 59 #include <devmap.h> 60 60 #include <sys/types.h> 61 #include <inttypes.h>62 61 #include <errno.h> 63 62 #include <bool.h> … … 113 112 printf(NAME ": ATA disk driver\n"); 114 113 115 printf("I/O address %p/%p\n", ctl_physical, cmd_physical);114 printf("I/O address 0x%p/0x%p\n", ctl_physical, cmd_physical); 116 115 117 116 if (ata_bd_init() != EOK) … … 181 180 } 182 181 183 printf(" % " PRIu64 "blocks", d->blocks, d->blocks / (2 * 1024));182 printf(" %llu blocks", d->blocks, d->blocks / (2 * 1024)); 184 183 185 184 mbytes = d->blocks / (2 * 1024); 186 185 if (mbytes > 0) 187 printf(" % " PRIu64 "MB.", mbytes);186 printf(" %llu MB.", mbytes); 188 187 189 188 printf("\n"); -
uspace/srv/bd/part/guid_part/guid_part.c
ra9bbe48d r95e6c4f 54 54 #include <devmap.h> 55 55 #include <sys/types.h> 56 #include <sys/typefmt.h>57 #include <inttypes.h>58 56 #include <libblock.h> 59 57 #include <devmap.h> … … 198 196 size_mb = (part->length * block_size + 1024 * 1024 - 1) 199 197 / (1024 * 1024); 200 printf(NAME ": Registered device %s: % " PRIu64 " blocks "201 "%" PRIuBN " MB.\n",name, part->length, size_mb);198 printf(NAME ": Registered device %s: %llu blocks %llu MB.\n", 199 name, part->length, size_mb); 202 200 203 201 part->dev = dev; -
uspace/srv/bd/part/mbr_part/mbr_part.c
ra9bbe48d r95e6c4f 64 64 #include <devmap.h> 65 65 #include <sys/types.h> 66 #include <sys/typefmt.h>67 #include <inttypes.h>68 66 #include <libblock.h> 69 67 #include <devmap.h> … … 249 247 size_mb = (part->length * block_size + 1024 * 1024 - 1) 250 248 / (1024 * 1024); 251 printf(NAME ": Registered device %s: % " PRIuBN " blocks "252 "%" PRIu64 " MB.\n",name, part->length, size_mb);249 printf(NAME ": Registered device %s: %llu blocks %llu MB.\n", 250 name, part->length, size_mb); 253 251 254 252 part->dev = dev; … … 276 274 if (brb == NULL) { 277 275 printf(NAME ": Failed allocating memory.\n"); 278 return ENOMEM; 276 return ENOMEM; 279 277 } 280 278 … … 291 289 sgn = uint16_t_le2host(brb->signature); 292 290 if (sgn != BR_SIGNATURE) { 293 printf(NAME ": Invalid boot record signature 0x%04" PRIX16 294 ".\n", sgn); 291 printf(NAME ": Invalid boot record signature 0x%04X.\n", sgn); 295 292 return EINVAL; 296 293 } … … 336 333 rc = block_read_direct(indev_handle, ba, 1, brb); 337 334 if (rc != EOK) { 338 printf(NAME ": Failed reading EBR block at %" 339 PRIu32 ".\n", ba); 335 printf(NAME ": Failed reading EBR block at %u.\n", ba); 340 336 return rc; 341 337 } … … 343 339 sgn = uint16_t_le2host(brb->signature); 344 340 if (sgn != BR_SIGNATURE) { 345 printf(NAME ": Invalid boot record signature 0x%04 "346 PRIX16 " in EBR at %" PRIu32 ".\n", sgn, ba);341 printf(NAME ": Invalid boot record signature 0x%04X " 342 " in EBR at %u.\n", sgn, ba); 347 343 return EINVAL; 348 344 } -
uspace/srv/loader/elf_load.c
ra9bbe48d r95e6c4f 342 342 seg_ptr = (void *) seg_addr; 343 343 344 DPRINTF("Load segment at addr %p, size 0x%x\n", seg_addr,345 entry->p_memsz); 344 DPRINTF("Load segment at addr 0x%x, size 0x%x\n", seg_addr, 345 entry->p_memsz); 346 346 347 347 if (entry->p_align > 1) { … … 370 370 mem_sz = entry->p_memsz + (entry->p_vaddr - base); 371 371 372 DPRINTF("Map to seg_addr= %p-%p.\n", seg_addr,372 DPRINTF("Map to seg_addr=0x%x-0x%x.\n", seg_addr, 373 373 entry->p_vaddr + bias + ALIGN_UP(entry->p_memsz, PAGE_SIZE)); 374 374 … … 384 384 } 385 385 386 DPRINTF("as_area_create( %p, 0x%x, %d) -> 0x%lx\n",386 DPRINTF("as_area_create(0x%lx, 0x%x, %d) -> 0x%lx\n", 387 387 base + bias, mem_sz, flags, (uintptr_t)a); 388 388 … … 461 461 elf->info->dynamic = 462 462 (void *)((uint8_t *)entry->sh_addr + elf->bias); 463 DPRINTF("Dynamic section found at %p.\n",463 DPRINTF("Dynamic section found at 0x%x.\n", 464 464 (uintptr_t)elf->info->dynamic); 465 465 break; -
uspace/srv/loader/main.c
ra9bbe48d r95e6c4f 392 392 /* Dynamically linked program */ 393 393 DPRINTF("Run ELF interpreter.\n"); 394 DPRINTF("Entry point: %p\n", interp_info.entry);394 DPRINTF("Entry point: 0x%lx\n", interp_info.entry); 395 395 396 396 ipc_answer_0(rid, EOK); -
uspace/srv/taskmon/taskmon.c
ra9bbe48d r95e6c4f 39 39 #include <async.h> 40 40 #include <ipc/services.h> 41 #include <sys/typefmt.h>42 41 #include <task.h> 43 42 #include <event.h> … … 61 60 thread = IPC_GET_ARG3(*call); 62 61 63 if (asprintf(&s_taskid, "% " PRIuTASKID, taskid) < 0) {62 if (asprintf(&s_taskid, "%lld", taskid) < 0) { 64 63 printf("Memory allocation failed.\n"); 65 64 return; 66 65 } 67 66 68 if (asprintf(&dump_fname, "/scratch/d " PRIuTASKID ".txt", taskid) < 0) {67 if (asprintf(&dump_fname, "/scratch/d%lld.txt", taskid) < 0) { 69 68 printf("Memory allocation failed.\n"); 70 69 return; 71 70 } 72 71 73 printf(NAME ": Task % " PRIuTASKID " fault in thread %p.\n", taskid, thread);72 printf(NAME ": Task %lld fault in thread 0x%lx.\n", taskid, thread); 74 73 75 74 #ifdef CONFIG_VERBOSE_DUMPS
Note:
See TracChangeset
for help on using the changeset viewer.