diff options
Diffstat (limited to 'sys/geom/geom_subr.c')
-rw-r--r-- | sys/geom/geom_subr.c | 5 |
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; |