diff options
author | Rosen Penev <rosenp@gmail.com> | 2022-05-02 17:43:32 -0700 |
---|---|---|
committer | Rosen Penev <rosenp@gmail.com> | 2022-05-10 13:36:58 -0700 |
commit | 710e8ecb9f0eec24ad407b8fa8af8d4e58f558a9 (patch) | |
tree | 09c2ce13d008a8ed01156f2d7bae5e5cdbdc879a /disk-utils | |
parent | 7b8fda2e8e7b1752cba1fab01d7f569b5d87e661 (diff) | |
download | util-linux-710e8ecb9f0eec24ad407b8fa8af8d4e58f558a9.tar.gz |
fix various formats
Found with -Wformat.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'disk-utils')
-rw-r--r-- | disk-utils/sfdisk.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/disk-utils/sfdisk.c b/disk-utils/sfdisk.c index d46cdd244..38c7b1798 100644 --- a/disk-utils/sfdisk.c +++ b/disk-utils/sfdisk.c @@ -515,7 +515,7 @@ static int move_partition_data(struct sfdisk *sf, size_t partno, struct fdisk_pa (uintmax_t)to, (uintmax_t)to * ss); fprintf(f, "# Area size (sectors/bytes): %ju/%ju\n", (uintmax_t)nsectors, (uintmax_t)nsectors * ss); - fprintf(f, "# Step size (sectors/bytes): %zu/%zu\n", step, step_bytes); + fprintf(f, "# Step size (sectors/bytes): %" PRIu64 "/%zu\n", step, step_bytes); fprintf(f, "# Steps: %ju\n", ((uintmax_t) nsectors / step) + 1); fprintf(f, "#\n"); fprintf(f, "# <step>: <from> <to> (step offsets in bytes)\n"); @@ -533,7 +533,7 @@ static int move_partition_data(struct sfdisk *sf, size_t partno, struct fdisk_pa for (cc = 1, i = 0; i < nsectors && nbytes > 0; i += step, cc++) { if (nbytes < step_bytes) { - DBG(MISC, ul_debug("aligning step #%05zu from %ju to %ju", + DBG(MISC, ul_debug("aligning step #%05zu from %zu to %ju", cc, step_bytes, nbytes)); step_bytes = nbytes; } @@ -551,7 +551,7 @@ static int move_partition_data(struct sfdisk *sf, size_t partno, struct fdisk_pa if (f) fprintf(f, "%05zu: read error %12ju %12ju\n", cc, src, dst); fdisk_warn(sf->cxt, - _("cannot read at offset: %zu; continue"), src); + _("cannot read at offset: %ju; continue"), src); ioerr++; goto next; } @@ -562,7 +562,7 @@ static int move_partition_data(struct sfdisk *sf, size_t partno, struct fdisk_pa if (f) fprintf(f, "%05zu: write error %12ju %12ju\n", cc, src, dst); fdisk_warn(sf->cxt, - _("cannot write at offset: %zu; continue"), dst); + _("cannot write at offset: %ju; continue"), dst); ioerr++; goto next; } |