[PATCH 06/14] fdformat: match variable and print format types

Sami Kerola
2014-07-13T20:25:22Z

disk-utils/fdformat.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/disk-utils/fdformat.c b/disk-utils/fdformat.c
index b50ba30..e6ae8e4 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) {
--
2.0.1