summaryrefslogtreecommitdiffstats
path: root/sbin/atacontrol
diff options
context:
space:
mode:
authorjohan <johan@FreeBSD.org>2003-04-22 19:57:46 +0000
committerjohan <johan@FreeBSD.org>2003-04-22 19:57:46 +0000
commit3cd76cb1f7232072da9de75f0c43d9b30c28d8d0 (patch)
tree11377b2495344c4dd4f1b5b71dc74a379986fdf5 /sbin/atacontrol
parent8c172a3498d91a8abd7141b374284ed6759b7e0b (diff)
downloadFreeBSD-src-3cd76cb1f7232072da9de75f0c43d9b30c28d8d0.zip
FreeBSD-src-3cd76cb1f7232072da9de75f0c43d9b30c28d8d0.tar.gz
Make this WARNS=2 clean by using %j and (uintmax_t).
Reviewed by: tjr@ on audit@ Approved by: silence from sos@
Diffstat (limited to 'sbin/atacontrol')
-rw-r--r--sbin/atacontrol/Makefile1
-rw-r--r--sbin/atacontrol/atacontrol.c3
2 files changed, 2 insertions, 2 deletions
diff --git a/sbin/atacontrol/Makefile b/sbin/atacontrol/Makefile
index 95c9298..9881273 100644
--- a/sbin/atacontrol/Makefile
+++ b/sbin/atacontrol/Makefile
@@ -1,7 +1,6 @@
#$FreeBSD$
PROG= atacontrol
-WARNS= 0
MAN= atacontrol.8
.include <bsd.prog.mk>
diff --git a/sbin/atacontrol/atacontrol.c b/sbin/atacontrol/atacontrol.c
index c55e399..d453d2a 100644
--- a/sbin/atacontrol/atacontrol.c
+++ b/sbin/atacontrol/atacontrol.c
@@ -34,6 +34,7 @@
#include <err.h>
#include <errno.h>
#include <fcntl.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -137,7 +138,7 @@ cap_print(struct ata_params *parm)
printf("lba48%ssupported ",
parm->support.address48 ? " " : " not ");
if (lbasize48)
- printf("%lld sectors\n", lbasize48);
+ printf("%ju sectors\n", (uintmax_t)lbasize48);
else
printf("\n");
OpenPOWER on IntegriCloud