summaryrefslogtreecommitdiffstats
path: root/fdisks/fdisk.c
diff options
context:
space:
mode:
authorKarel Zak2013-10-15 12:46:35 +0200
committerKarel Zak2013-10-15 12:46:35 +0200
commite39966c6a026003f88989e5469fa9b3682fcfbc6 (patch)
tree8519b6058a4b16cb890bdf1d673282ca09235986 /fdisks/fdisk.c
parentlibfdisk: (dos) all disklabel locate function (diff)
downloadkernel-qcow2-util-linux-e39966c6a026003f88989e5469fa9b3682fcfbc6.tar.gz
kernel-qcow2-util-linux-e39966c6a026003f88989e5469fa9b3682fcfbc6.tar.xz
kernel-qcow2-util-linux-e39966c6a026003f88989e5469fa9b3682fcfbc6.zip
fdisk: fix printf stuff
Unfortunately, fdisk_warn/info/.. function was not marked by printf __attribute__. We don't want to break gettext stuff now, so all compiler warnings have been fixed by casts. This is temporary solution, after release it will be necessary to fix all the strings. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisks/fdisk.c')
-rw-r--r--fdisks/fdisk.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fdisks/fdisk.c b/fdisks/fdisk.c
index 5df78f6a5..01e8149ab 100644
--- a/fdisks/fdisk.c
+++ b/fdisks/fdisk.c
@@ -200,7 +200,9 @@ void list_disk_geometry(struct fdisk_context *cxt)
| SIZE_SUFFIX_3LETTER, bytes);
fdisk_colon(cxt, _("Disk %s: %s, %llu bytes, %llu sectors"),
- cxt->dev_path, strsz, bytes, cxt->total_sectors);
+ cxt->dev_path, strsz,
+ (unsigned long long) bytes,
+ (unsigned long long) cxt->total_sectors);
free(strsz);
if (fdisk_require_geometry(cxt) || fdisk_context_use_cylinders(cxt))