Changeset fb6f1a5 in mainline
- Timestamp:
- 2010-01-27T21:44:52Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1ccafee
- Parents:
- b79d450
- Location:
- uspace
- Files:
-
- 9 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/mkfat/mkfat.c
rb79d450 rfb6f1a5 44 44 #include <devmap.h> 45 45 #include <byteorder.h> 46 #include <sys/types.h> 47 #include <inttypes.h> 46 48 #include <errno.h> 47 49 #include "fat.h" … … 157 159 printf(NAME ": Warning, failed to obtain block device size.\n"); 158 160 } else { 159 printf(NAME ": Block device has %llu blocks.\n", dev_nblocks); 161 printf(NAME ": Block device has %" PRIu64 " blocks.\n", 162 (uint64_t) dev_nblocks); 160 163 cfg.total_sectors = dev_nblocks; 161 164 } -
uspace/app/taskdump/taskdump.c
rb79d450 rfb6f1a5 245 245 printf("Threads:\n"); 246 246 for (i = 0; i < n_threads; i++) { 247 printf(" [%d] hash: 0x%lx\n", 1+i, thash_buf[i]);247 printf(" [%d] hash: %p\n", 1+i, thash_buf[i]); 248 248 249 249 thread_dump(thash_buf[i]); … … 289 289 printf("Address space areas:\n"); 290 290 for (i = 0; i < n_areas; i++) { 291 printf(" [%d] flags: %c%c%c%c base: 0x%lx size: 0x%lx\n", 1+i,291 printf(" [%d] flags: %c%c%c%c base: %p size: %p\n", 1+i, 292 292 (ainfo_buf[i].flags & AS_AREA_READ) ? 'R' : '-', 293 293 (ainfo_buf[i].flags & AS_AREA_WRITE) ? 'W' : '-', … … 328 328 329 329 sym_pc = fmt_sym_address(pc); 330 printf("Thread 0x%lx crashed at %s. FP = 0x%lx\n", thash, sym_pc, fp);330 printf("Thread %p crashed at %s. FP = %p\n", thash, sym_pc, fp); 331 331 free(sym_pc); 332 332 -
uspace/app/trace/ipcp.c
rb79d450 rfb6f1a5 279 279 280 280 if ((display_mask & DM_IPC) != 0) { 281 printf("Response to 0x%lx: retval=%ld, args = (%lu, %lu, %lu, %lu, %lu)\n",281 printf("Response to %p: retval=%ld, args = (%lu, %lu, %lu, %lu, %lu)\n", 282 282 hash, retval, IPC_GET_ARG1(*answer), 283 283 IPC_GET_ARG2(*answer), IPC_GET_ARG3(*answer), … … 336 336 /* Not a response */ 337 337 if ((display_mask & DM_IPC) != 0) { 338 printf("Not a response (hash 0x%lx)\n", hash);338 printf("Not a response (hash %p)\n", hash); 339 339 } 340 340 return; -
uspace/app/trace/trace.c
rb79d450 rfb6f1a5 198 198 printf("Threads:"); 199 199 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]); 201 201 } 202 202 printf("\ntotal of %u threads\n", tb_needed / sizeof(uintptr_t)); … … 222 222 case V_HASH: 223 223 case V_PTR: 224 printf(" 0x%08lx", val);224 printf("%p", val); 225 225 break; 226 226 … … 508 508 } 509 509 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); 511 511 512 512 while (!abort_trace) { … … 552 552 break; 553 553 case UDEBUG_EVENT_THREAD_E: 554 printf("Thread 0x%lxexited.\n", val0);554 printf("Thread %p exited.\n", val0); 555 555 fibril_mutex_lock(&state_lock); 556 556 abort_trace = true; -
uspace/srv/bd/ata_bd/ata_bd.c
rb79d450 rfb6f1a5 59 59 #include <devmap.h> 60 60 #include <sys/types.h> 61 #include <inttypes.h> 61 62 #include <errno.h> 62 63 #include <bool.h> … … 112 113 printf(NAME ": ATA disk driver\n"); 113 114 114 printf("I/O address 0x%p/0x%p\n", ctl_physical, cmd_physical);115 printf("I/O address %p/%p\n", ctl_physical, cmd_physical); 115 116 116 117 if (ata_bd_init() != EOK) … … 180 181 } 181 182 182 printf(" % llublocks", d->blocks, d->blocks / (2 * 1024));183 printf(" %" PRIu64 " blocks", d->blocks, d->blocks / (2 * 1024)); 183 184 184 185 mbytes = d->blocks / (2 * 1024); 185 186 if (mbytes > 0) 186 printf(" % lluMB.", mbytes);187 printf(" %" PRIu64 " MB.", mbytes); 187 188 188 189 printf("\n"); -
uspace/srv/bd/part/guid_part/guid_part.c
rb79d450 rfb6f1a5 54 54 #include <devmap.h> 55 55 #include <sys/types.h> 56 #include <inttypes.h> 56 57 #include <libblock.h> 57 58 #include <devmap.h> … … 196 197 size_mb = (part->length * block_size + 1024 * 1024 - 1) 197 198 / (1024 * 1024); 198 printf(NAME ": Registered device %s: % llu blocks %llu MB.\n",199 name,part->length, size_mb);199 printf(NAME ": Registered device %s: %" PRIu64 " blocks " 200 "%" PRIu64 " MB.\n", name, (uint64_t) part->length, size_mb); 200 201 201 202 part->dev = dev; -
uspace/srv/bd/part/mbr_part/mbr_part.c
rb79d450 rfb6f1a5 64 64 #include <devmap.h> 65 65 #include <sys/types.h> 66 #include <inttypes.h> 66 67 #include <libblock.h> 67 68 #include <devmap.h> … … 247 248 size_mb = (part->length * block_size + 1024 * 1024 - 1) 248 249 / (1024 * 1024); 249 printf(NAME ": Registered device %s: %llu blocks %llu MB.\n", 250 name, part->length, size_mb); 250 printf(NAME ": Registered device %s: %" PRIu64 " blocks " 251 "%" PRIu64 " MB.\n", 252 name, (uint64_t) part->length, size_mb); 251 253 252 254 part->dev = dev; … … 274 276 if (brb == NULL) { 275 277 printf(NAME ": Failed allocating memory.\n"); 276 return ENOMEM; 278 return ENOMEM; 277 279 } 278 280 … … 289 291 sgn = uint16_t_le2host(brb->signature); 290 292 if (sgn != BR_SIGNATURE) { 291 printf(NAME ": Invalid boot record signature 0x%04X.\n", sgn); 293 printf(NAME ": Invalid boot record signature 0x%04" PRIX16 294 ".\n", sgn); 292 295 return EINVAL; 293 296 } … … 339 342 sgn = uint16_t_le2host(brb->signature); 340 343 if (sgn != BR_SIGNATURE) { 341 printf(NAME ": Invalid boot record signature 0x%04 X"342 " in EBR at %u.\n", sgn, ba);344 printf(NAME ": Invalid boot record signature 0x%04" 345 PRIX16 " in EBR at %" PRIu32 ".\n", sgn, ba); 343 346 return EINVAL; 344 347 } -
uspace/srv/loader/elf_load.c
rb79d450 rfb6f1a5 342 342 seg_ptr = (void *) seg_addr; 343 343 344 DPRINTF("Load segment at addr 0x%x, size 0x%x\n", seg_addr,345 entry->p_memsz); 344 DPRINTF("Load segment at addr %p, 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= 0x%x-0x%x.\n", seg_addr,372 DPRINTF("Map to seg_addr=%p-%p.\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( 0x%lx, 0x%x, %d) -> 0x%lx\n",386 DPRINTF("as_area_create(%p, 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 0x%x.\n",463 DPRINTF("Dynamic section found at %p.\n", 464 464 (uintptr_t)elf->info->dynamic); 465 465 break; -
uspace/srv/loader/main.c
rb79d450 rfb6f1a5 392 392 /* Dynamically linked program */ 393 393 DPRINTF("Run ELF interpreter.\n"); 394 DPRINTF("Entry point: 0x%lx\n", interp_info.entry);394 DPRINTF("Entry point: %p\n", interp_info.entry); 395 395 396 396 ipc_answer_0(rid, EOK); -
uspace/srv/taskmon/taskmon.c
rb79d450 rfb6f1a5 70 70 } 71 71 72 printf(NAME ": Task %lld fault in thread 0x%lx.\n", taskid, thread);72 printf(NAME ": Task %lld fault in thread %p.\n", taskid, thread); 73 73 74 74 #ifdef CONFIG_VERBOSE_DUMPS
Note:
See TracChangeset
for help on using the changeset viewer.