[syslinux:master] chain.c32: fix types in dprintf()
syslinux-bot for H. Peter Anvin
hpa at zytor.com
Mon Jun 20 21:21:10 PDT 2011
Commit-ID: 4f1ec3082f4c2b9c07e06c87347c58173afd99a3
Gitweb: http://syslinux.zytor.com/commit/4f1ec3082f4c2b9c07e06c87347c58173afd99a3
Author: H. Peter Anvin <hpa at zytor.com>
AuthorDate: Mon, 20 Jun 2011 21:18:49 -0700
Committer: H. Peter Anvin <hpa at zytor.com>
CommitDate: Mon, 20 Jun 2011 21:18:49 -0700
chain.c32: fix types in dprintf()
Correct invalid types in dprintf().
Signed-off-by: H. Peter Anvin <hpa at zytor.com>
---
com32/modules/chain.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/com32/modules/chain.c b/com32/modules/chain.c
index ced105a..2ed0f14 100644
--- a/com32/modules/chain.c
+++ b/com32/modules/chain.c
@@ -569,7 +569,8 @@ static struct disk_part_iter *next_ebr_part(struct disk_part_iter *part)
}
/* Success */
part->lba_data = ebr_table[0].start_lba + ebr_lba;
- dprintf("Partition %d logical lba %u\n", part->index, part->lba_data);
+ dprintf("Partition %d logical lba %"PRIu64"\n",
+ part->index, part->lba_data);
part->index++;
part->record = ebr_table;
return part;
@@ -630,8 +631,8 @@ static struct disk_part_iter *next_mbr_part(struct disk_part_iter *part)
/* Update parameters to reflect this new partition. Re-use iterator */
part->lba_data = table[part->private.mbr_index].start_lba;
- dprintf("Partition %d primary lba %u\n", part->private.mbr_index,
- part->lba_data);
+ dprintf("Partition %d primary lba %"PRIu64"\n",
+ part->private.mbr_index, part->lba_data);
part->index = part->private.mbr_index + 1;
part->record = table + part->private.mbr_index;
return part;
@@ -1783,7 +1784,7 @@ int main(int argc, char *argv[])
* fs_lba should be verified against the disk as some DRMK
* variants will check and fail if it does not match
*/
- dprintf(" fs_lba offset is %d\n", fs_lba);
+ dprintf(" fs_lba offset is %"PRIu64"\n", fs_lba);
/* DRMK only uses a DWORD */
if (fs_lba > 0xffffffff) {
error
More information about the Syslinux-commits
mailing list