Changeset fb6f1a5 in mainline for uspace/srv/bd
- Timestamp:
- 2010-01-27T21:44:52Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1ccafee
- Parents:
- b79d450
- Location:
- uspace/srv/bd
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note:
See TracChangeset
for help on using the changeset viewer.