From d24c220d04876a886b0ae3bdef23309c9e29c1c0 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sun, 13 Jan 2013 19:51:48 +0100 Subject: Remove 64bit warning by using C99 fixed width format specifier. Change-Id: I7fecca91acb61461f6696e0bf28bdd6c1bdf6f3c --- rbutil/ipodpatcher/fat32format.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'rbutil/ipodpatcher/fat32format.c') 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 #include #include +#include #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 ); -- cgit v1.2.3