diff options
| author | Karel Zak <kzak@redhat.com> | 2013-10-15 12:46:35 +0200 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2013-10-15 12:46:35 +0200 |
| commit | e39966c6a026003f88989e5469fa9b3682fcfbc6 (patch) | |
| tree | 8519b6058a4b16cb890bdf1d673282ca09235986 /fdisks/fdisk.c | |
| parent | f32a9be45aa53abe15fe223affb31b08db097e16 (diff) | |
| download | util-linux-e39966c6a026003f88989e5469fa9b3682fcfbc6.tar.gz | |
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.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fdisks/fdisk.c b/fdisks/fdisk.c index 5df78f6a..01e8149a 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)) |
