From 18b1fcb9cc62f4dd26eccd1c35f612ac6db1cd9b Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sun, 13 Jul 2014 17:34:25 +0100 Subject: fdformat: match variable and print format types Signed-off-by: Sami Kerola --- disk-utils/fdformat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'disk-utils/fdformat.c') 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) { -- cgit v1.2.3-55-g7522