diff options
author | Sami Kerola | 2014-07-13 18:34:25 +0200 |
---|---|---|
committer | Sami Kerola | 2014-07-13 18:34:25 +0200 |
commit | 18b1fcb9cc62f4dd26eccd1c35f612ac6db1cd9b (patch) | |
tree | d8095e706ada7363780a1d0c81c160da3f4e8e24 /disk-utils/fdformat.c | |
parent | cfdisk: add braces to ensure operation order (diff) | |
download | kernel-qcow2-util-linux-18b1fcb9cc62f4dd26eccd1c35f612ac6db1cd9b.tar.gz kernel-qcow2-util-linux-18b1fcb9cc62f4dd26eccd1c35f612ac6db1cd9b.tar.xz kernel-qcow2-util-linux-18b1fcb9cc62f4dd26eccd1c35f612ac6db1cd9b.zip |
fdformat: match variable and print format types
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'disk-utils/fdformat.c')
-rw-r--r-- | disk-utils/fdformat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/disk-utils/fdformat.c b/disk-utils/fdformat.c index b50ba3018..e6ae8e431 100644 --- a/disk-utils/fdformat.c +++ b/disk-utils/fdformat.c @@ -35,7 +35,7 @@ static void format_disk(int ctrl) if (ioctl(ctrl, FDFMTTRK, (long) &descr) < 0) err(EXIT_FAILURE, "ioctl: FDFMTTRK"); - printf("%3d\b\b\b", track); + printf("%3ud\b\b\b", track); fflush(stdout); if (param.head == 2) { descr.head = 1; @@ -63,7 +63,7 @@ static void verify_disk(char *name) for (cyl = 0; cyl < param.track; cyl++) { int read_bytes; - printf("%3d\b\b\b", cyl); + printf("%u3d\b\b\b", cyl); fflush(stdout); read_bytes = read(fd, data, cyl_size); if (read_bytes != cyl_size) { |