summaryrefslogtreecommitdiff
path: root/sbin/badsect/badsect.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/badsect/badsect.c')
-rw-r--r--sbin/badsect/badsect.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/badsect/badsect.c b/sbin/badsect/badsect.c
index 2b7c55a0e5f..2fe03e08d70 100644
--- a/sbin/badsect/badsect.c
+++ b/sbin/badsect/badsect.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: badsect.c,v 1.4 1996/09/13 16:25:26 deraadt Exp $ */
+/* $OpenBSD: badsect.c,v 1.5 2001/07/07 18:26:10 deraadt Exp $ */
/* $NetBSD: badsect.c,v 1.10 1995/03/18 14:54:28 cgd Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)badsect.c 8.1 (Berkeley) 6/5/93";
#else
-static char rcsid[] = "$OpenBSD: badsect.c,v 1.4 1996/09/13 16:25:26 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: badsect.c,v 1.5 2001/07/07 18:26:10 deraadt Exp $";
#endif
#endif /* not lint */
@@ -217,13 +217,13 @@ rdfs(bno, size, bf)
int n;
if (lseek(fsi, (off_t)bno * dev_bsize, SEEK_SET) < 0) {
- printf("seek error: %ld\n", bno);
+ printf("seek error: %lld\n", (long long)bno);
perror("rdfs");
exit(1);
}
n = read(fsi, bf, size);
if (n != size) {
- printf("read error: %ld\n", bno);
+ printf("read error: %lld\n", (long long)bno);
perror("rdfs");
exit(1);
}