summaryrefslogtreecommitdiffstats
path: root/rbutil/ipodpatcher
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2013-01-13 19:51:48 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2013-01-13 19:51:48 +0100
commitd24c220d04876a886b0ae3bdef23309c9e29c1c0 (patch)
tree0f80608b8d3c7bd103a4d074238c22fc957b51aa /rbutil/ipodpatcher
parent1f1826e39c2e9c8b548017153b34ab8d68bb8d03 (diff)
downloadrockbox-d24c220d04876a886b0ae3bdef23309c9e29c1c0.tar.gz
rockbox-d24c220d04876a886b0ae3bdef23309c9e29c1c0.tar.bz2
rockbox-d24c220d04876a886b0ae3bdef23309c9e29c1c0.zip
Remove 64bit warning by using C99 fixed width format specifier.
Change-Id: I7fecca91acb61461f6696e0bf28bdd6c1bdf6f3c
Diffstat (limited to 'rbutil/ipodpatcher')
-rw-r--r--rbutil/ipodpatcher/fat32format.c4
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 @@
#include <string.h>
#include <stdbool.h>
#include <stdint.h>
+#include <inttypes.h>
#include "ipodio.h"
@@ -465,7 +466,8 @@ int format_partition(struct ipod_t* ipod, int partition)
*/
fprintf(stderr,"[INFO] Heads - %d, sectors/track = %d\n",ipod->num_heads,ipod->sectors_per_track);
- fprintf(stderr,"[INFO] Size : %lluGB %u sectors\n", ((uint64_t)ipod->pinfo[partition].size * (uint64_t)ipod->sector_size) / (1000*1000*1000), TotalSectors );
+ fprintf(stderr,"[INFO] Size : %" PRIu64 "GB %u sectors\n",
+ ((uint64_t)ipod->pinfo[partition].size * (uint64_t)ipod->sector_size) / (1000*1000*1000), TotalSectors );
fprintf(stderr,"[INFO] %d Bytes Per Sector, Cluster size %d bytes\n", BytesPerSect, SectorsPerCluster*BytesPerSect );
fprintf(stderr,"[INFO] Volume ID is %x:%x\n", VolumeId>>16, VolumeId&0xffff );
fprintf(stderr,"[INFO] %d Reserved Sectors, %d Sectors per FAT, %d fats\n", ReservedSectCount, FatSize, NumFATs );