summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-10-23 12:42:18 +0000
committerphk <phk@FreeBSD.org>2004-10-23 12:42:18 +0000
commit6720f62dc5ceb400751578bc768a4798de719a4c (patch)
treef82e2e56a11728064aef8e477e1fc6b9f53c3e42
parent45aef9e6ad88fff3eb57129d03fd658231f53ca9 (diff)
downloadFreeBSD-src-6720f62dc5ceb400751578bc768a4798de719a4c.zip
FreeBSD-src-6720f62dc5ceb400751578bc768a4798de719a4c.tar.gz
Stop amd64 warnings.
-rw-r--r--sbin/recoverdisk/recoverdisk.c7
-rw-r--r--tools/tools/recoverdisk/recoverdisk.c7
2 files changed, 8 insertions, 6 deletions
diff --git a/sbin/recoverdisk/recoverdisk.c b/sbin/recoverdisk/recoverdisk.c
index 76d0a0f..2523f02 100644
--- a/sbin/recoverdisk/recoverdisk.c
+++ b/sbin/recoverdisk/recoverdisk.c
@@ -125,13 +125,14 @@ main(int argc, const char **argv)
else
j = i;
if (j != i)
- printf("\nWrite error at %jd/%d\n",
- lp->start, i);
+ printf("\nWrite error at %jd/%jd\n",
+ lp->start, (intmax_t)i);
lp->start += i;
lp->len -= i;
continue;
}
- printf("\n%jd %d failed %d\n", lp->start, i, errno);
+ printf("\n%jd %jd failed %d\n",
+ lp->start, (intmax_t)i, errno);
new_lump(lp->start, i, lp->state + 1);
lp->start += i;
lp->len -= i;
diff --git a/tools/tools/recoverdisk/recoverdisk.c b/tools/tools/recoverdisk/recoverdisk.c
index 76d0a0f..2523f02 100644
--- a/tools/tools/recoverdisk/recoverdisk.c
+++ b/tools/tools/recoverdisk/recoverdisk.c
@@ -125,13 +125,14 @@ main(int argc, const char **argv)
else
j = i;
if (j != i)
- printf("\nWrite error at %jd/%d\n",
- lp->start, i);
+ printf("\nWrite error at %jd/%jd\n",
+ lp->start, (intmax_t)i);
lp->start += i;
lp->len -= i;
continue;
}
- printf("\n%jd %d failed %d\n", lp->start, i, errno);
+ printf("\n%jd %jd failed %d\n",
+ lp->start, (intmax_t)i, errno);
new_lump(lp->start, i, lp->state + 1);
lp->start += i;
lp->len -= i;
OpenPOWER on IntegriCloud