summaryrefslogtreecommitdiff
path: root/sbin/dump
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2014-05-31 11:28:45 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2014-05-31 11:28:45 +0000
commit701de55ba9cba7093451660271e52c44572c339d (patch)
tree16925f5854af49fada2dd87653c5ea6b30dfd0a7 /sbin/dump
parent8b7b92dca83808ff8a6aa000e0333039066bf74c (diff)
Cast daddr_t variable (blkno) to (long long) when printing with %lld.
Diffstat (limited to 'sbin/dump')
-rw-r--r--sbin/dump/traverse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/dump/traverse.c b/sbin/dump/traverse.c
index 82484df5b5c..7c22b9dfc30 100644
--- a/sbin/dump/traverse.c
+++ b/sbin/dump/traverse.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: traverse.c,v 1.32 2014/05/27 12:35:40 krw Exp $ */
+/* $OpenBSD: traverse.c,v 1.33 2014/05/31 11:28:44 krw Exp $ */
/* $NetBSD: traverse.c,v 1.17 1997/06/05 11:13:27 lukem Exp $ */
/*-
@@ -830,10 +830,10 @@ loop:
}
if (cnt == -1)
msg("read error from %s: %s: [block %lld]: count=%d\n",
- disk, strerror(errno), blkno, size);
+ disk, strerror(errno), (long long)blkno, size);
else
msg("short read error from %s: [block %lld]: count=%d, "
- "got=%d\n", disk, blkno, size, cnt);
+ "got=%d\n", disk, (long long)blkno, size, cnt);
if (++breaderrors > BREADEMAX) {
msg("More than %d block read errors from %s\n",
BREADEMAX, disk);