summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_subr.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-10-20 18:48:12 +0000
committerphk <phk@FreeBSD.org>2002-10-20 18:48:12 +0000
commit536319e74068e70486e4ae4127774b8cdfbb3aa9 (patch)
treebf4b18a139228ae721671a5bdd77f029794eb842 /sys/geom/geom_subr.c
parent6128ce4ca2087bba0e1d6da690b5e0b3b15b459e (diff)
downloadFreeBSD-src-536319e74068e70486e4ae4127774b8cdfbb3aa9.zip
FreeBSD-src-536319e74068e70486e4ae4127774b8cdfbb3aa9.tar.gz
Use %jd instead of %lld now that we have it.
Diffstat (limited to 'sys/geom/geom_subr.c')
-rw-r--r--sys/geom/geom_subr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/geom/geom_subr.c b/sys/geom/geom_subr.c
index 5fc726d..305d3551 100644
--- a/sys/geom/geom_subr.c
+++ b/sys/geom/geom_subr.c
@@ -37,6 +37,7 @@
#include <sys/param.h>
+#include <sys/stdint.h>
#ifndef _KERNEL
#include <stdio.h>
#include <unistd.h>
@@ -471,8 +472,8 @@ g_handleattr(struct bio *bp, char *attribute, void *val, int len)
if (strcmp(bp->bio_attribute, attribute))
return (0);
if (bp->bio_length != len) {
- printf("bio_length %lld len %d -> EFAULT\n",
- (long long)bp->bio_length, len);
+ printf("bio_length %jd len %d -> EFAULT\n",
+ (intmax_t)bp->bio_length, len);
error = EFAULT;
} else {
error = 0;
OpenPOWER on IntegriCloud