diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2013-01-13 19:51:48 +0100 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2013-01-13 19:51:48 +0100 |
commit | d24c220d04876a886b0ae3bdef23309c9e29c1c0 (patch) | |
tree | 0f80608b8d3c7bd103a4d074238c22fc957b51aa /rbutil | |
parent | 1f1826e39c2e9c8b548017153b34ab8d68bb8d03 (diff) | |
download | rockbox-d24c220d04876a886b0ae3bdef23309c9e29c1c0.tar.gz rockbox-d24c220d04876a886b0ae3bdef23309c9e29c1c0.zip |
Remove 64bit warning by using C99 fixed width format specifier.
Change-Id: I7fecca91acb61461f6696e0bf28bdd6c1bdf6f3c
Diffstat (limited to 'rbutil')
-rw-r--r-- | rbutil/ipodpatcher/fat32format.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rbutil/ipodpatcher/fat32format.c b/rbutil/ipodpatcher/fat32format.c index f47be60a97..7ee8021cbf 100644 --- a/rbutil/ipodpatcher/fat32format.c +++ b/rbutil/ipodpatcher/fat32format.c | |||
@@ -36,6 +36,7 @@ | |||
36 | #include <string.h> | 36 | #include <string.h> |
37 | #include <stdbool.h> | 37 | #include <stdbool.h> |
38 | #include <stdint.h> | 38 | #include <stdint.h> |
39 | #include <inttypes.h> | ||
39 | 40 | ||
40 | #include "ipodio.h" | 41 | #include "ipodio.h" |
41 | 42 | ||
@@ -465,7 +466,8 @@ int format_partition(struct ipod_t* ipod, int partition) | |||
465 | */ | 466 | */ |
466 | 467 | ||
467 | fprintf(stderr,"[INFO] Heads - %d, sectors/track = %d\n",ipod->num_heads,ipod->sectors_per_track); | 468 | fprintf(stderr,"[INFO] Heads - %d, sectors/track = %d\n",ipod->num_heads,ipod->sectors_per_track); |
468 | fprintf(stderr,"[INFO] Size : %lluGB %u sectors\n", ((uint64_t)ipod->pinfo[partition].size * (uint64_t)ipod->sector_size) / (1000*1000*1000), TotalSectors ); | 469 | fprintf(stderr,"[INFO] Size : %" PRIu64 "GB %u sectors\n", |
470 | ((uint64_t)ipod->pinfo[partition].size * (uint64_t)ipod->sector_size) / (1000*1000*1000), TotalSectors ); | ||
469 | fprintf(stderr,"[INFO] %d Bytes Per Sector, Cluster size %d bytes\n", BytesPerSect, SectorsPerCluster*BytesPerSect ); | 471 | fprintf(stderr,"[INFO] %d Bytes Per Sector, Cluster size %d bytes\n", BytesPerSect, SectorsPerCluster*BytesPerSect ); |
470 | fprintf(stderr,"[INFO] Volume ID is %x:%x\n", VolumeId>>16, VolumeId&0xffff ); | 472 | fprintf(stderr,"[INFO] Volume ID is %x:%x\n", VolumeId>>16, VolumeId&0xffff ); |
471 | fprintf(stderr,"[INFO] %d Reserved Sectors, %d Sectors per FAT, %d fats\n", ReservedSectCount, FatSize, NumFATs ); | 473 | fprintf(stderr,"[INFO] %d Reserved Sectors, %d Sectors per FAT, %d fats\n", ReservedSectCount, FatSize, NumFATs ); |