diff options
| author | Martin Str|mberg <ams@ludd.ltu.se> | 2014-12-17 15:28:14 -0500 |
|---|---|---|
| committer | Gene Cumm <gene.cumm@gmail.com> | 2015-01-05 20:43:13 -0500 |
| commit | 5932f124bce94b662b0b7dc9b79cdc4802d4731c (patch) | |
| tree | 22f2892da5f6003b791cac8c7f03e5c4337271c3 /com32/lib | |
| parent | 4e9a04186557d679a39de1ca18cadc1fbb174250 (diff) | |
| download | syslinux-5932f124bce94b662b0b7dc9b79cdc4802d4731c.tar.gz | |
com32: change '%llx' to use PRIx64
Get rid of printf format warning format ‘%llx’ expects type
‘long long unsigned int’, but argument 2 has type ‘uint64_t’
Use <inttypes.h> PRIx64 instead of llx to get rid of gcc warning
format ‘%llx’ expects type ‘long long unsigned int’, but argument 2
has type ‘uint64_t’
Author: Martin Str|mberg <ams@ludd.ltu.se>
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
Diffstat (limited to 'com32/lib')
| -rw-r--r-- | com32/lib/syslinux/disk.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/com32/lib/syslinux/disk.c b/com32/lib/syslinux/disk.c index 5a99bb42..afbfc846 100644 --- a/com32/lib/syslinux/disk.c +++ b/com32/lib/syslinux/disk.c @@ -528,9 +528,9 @@ void disk_gpt_part_dump(const struct disk_gpt_part_entry *const gpt_part) char guid_text[37]; dprintf("----------------------------------\n" - "GPT part. LBA first __ : 0x%.16llx\n" - "GPT part. LBA last ___ : 0x%.16llx\n" - "GPT part. attribs ____ : 0x%.16llx\n" + "GPT part. LBA first __ : 0x%.16" PRIx64 "x\n" + "GPT part. LBA last ___ : 0x%.16" PRIx64 "x\n" + "GPT part. attribs ____ : 0x%.16" PRIx64 "x\n" "GPT part. name _______ : '", gpt_part->lba_first, gpt_part->lba_last, gpt_part->attribs); for (i = 0; i < sizeof(gpt_part->name); i++) { @@ -559,11 +559,11 @@ void disk_gpt_header_dump(const struct disk_gpt_header *const gpt) "GPT header size ______ : 0x%.8x\n" "GPT header checksum __ : 0x%.8x\n" "GPT reserved _________ : '%4.4s'\n" - "GPT LBA current ______ : 0x%.16llx\n" - "GPT LBA alternative __ : 0x%.16llx\n" - "GPT LBA first usable _ : 0x%.16llx\n" - "GPT LBA last usable __ : 0x%.16llx\n" - "GPT LBA part. table __ : 0x%.16llx\n" + "GPT LBA current ______ : 0x%.16" PRIx64 "x\n" + "GPT LBA alternative __ : 0x%.16" PRIx64 "x\n" + "GPT LBA first usable _ : 0x%.16" PRIx64 "x\n" + "GPT LBA last usable __ : 0x%.16" PRIx64 "x\n" + "GPT LBA part. table __ : 0x%.16" PRIx64 "x\n" "GPT partition count __ : 0x%.8x\n" "GPT partition size ___ : 0x%.8x\n" "GPT part. table chksum : 0x%.8x\n", |
