diff options
author | mux <mux@FreeBSD.org> | 2002-10-27 12:27:04 +0000 |
---|---|---|
committer | mux <mux@FreeBSD.org> | 2002-10-27 12:27:04 +0000 |
commit | 0ef4b48b325b25c24a840a0a90f06816cd9b6221 (patch) | |
tree | 872ee6535ca4079b1a2bb30eb83e3afaf4f0e846 /sys/dev/ciss | |
parent | ae36702cc1acb13e69fa5fcab481f2d7abfc080a (diff) | |
download | FreeBSD-src-0ef4b48b325b25c24a840a0a90f06816cd9b6221.zip FreeBSD-src-0ef4b48b325b25c24a840a0a90f06816cd9b6221.tar.gz |
Fix a bunch of warnings on 64 bit platforms in the
CISS_DEBUG case by appropriately using %z and %j.
Diffstat (limited to 'sys/dev/ciss')
-rw-r--r-- | sys/dev/ciss/ciss.c | 1 | ||||
-rw-r--r-- | sys/dev/ciss/cissvar.h | 8 |
2 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/ciss/ciss.c b/sys/dev/ciss/ciss.c index ae17969..6479929 100644 --- a/sys/dev/ciss/ciss.c +++ b/sys/dev/ciss/ciss.c @@ -76,6 +76,7 @@ #include <sys/conf.h> #include <sys/devicestat.h> #include <sys/stat.h> +#include <sys/stdint.h> #include <cam/cam.h> #include <cam/cam_ccb.h> diff --git a/sys/dev/ciss/cissvar.h b/sys/dev/ciss/cissvar.h index 6cdb469..5baa136 100644 --- a/sys/dev/ciss/cissvar.h +++ b/sys/dev/ciss/cissvar.h @@ -261,11 +261,11 @@ struct ciss_softc do { \ if (level <= CISS_DEBUG) printf("%s: called\n", __func__); \ } while(0) -# define debug_struct(s) printf(" SIZE %s: %d\n", #s, sizeof(struct s)) -# define debug_union(s) printf(" SIZE %s: %d\n", #s, sizeof(union s)) -# define debug_type(s) printf(" SIZE %s: %d\n", #s, sizeof(s)) +# define debug_struct(s) printf(" SIZE %s: %zu\n", #s, sizeof(struct s)) +# define debug_union(s) printf(" SIZE %s: %zu\n", #s, sizeof(union s)) +# define debug_type(s) printf(" SIZE %s: %zu\n", #s, sizeof(s)) # define debug_field(s, f) printf(" OFFSET %s.%s: %d\n", #s, #f, ((int)&(((struct s *)0)->f))) -# define debug_const(c) printf(" CONST %s %d/0x%x\n", #c, c, c); +# define debug_const(c) printf(" CONST %s %jd/0x%jx\n", #c, (intmax_t)c, (intmax_t)c); #else # define debug(level, fmt, args...) # define debug_called(level) |