Changes in uspace/srv/bd/ata_bd/ata_bd.c [36e9cd1:08232ee] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/ata_bd/ata_bd.c
r36e9cd1 r08232ee 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"); … … 500 499 501 500 d = &disk[disk_id]; 502 503 /* Silence warning. */ 504 memset(&bc, 0, sizeof(bc)); 501 bc.h = 0; /* Silence warning. */ 505 502 506 503 /* Compute block coordinates. */ … … 576 573 577 574 d = &disk[disk_id]; 578 579 /* Silence warning. */ 580 memset(&bc, 0, sizeof(bc)); 575 bc.h = 0; /* Silence warning. */ 581 576 582 577 /* Compute block coordinates. */
Note:
See TracChangeset
for help on using the changeset viewer.