diff options
author | matteo <matteo@FreeBSD.org> | 2007-03-23 19:57:27 +0000 |
---|---|---|
committer | matteo <matteo@FreeBSD.org> | 2007-03-23 19:57:27 +0000 |
commit | 2d2929c912249f5cded546ea402051479a4a9b1a (patch) | |
tree | abaab4f7363e85eeba2052e35901fa20c4fb1c2d /usr.sbin/sysinstall/biosmptable.c | |
parent | 04c6de816f9163b8422e4d5eef06a23d9a6846c6 (diff) | |
download | FreeBSD-src-2d2929c912249f5cded546ea402051479a4a9b1a.zip FreeBSD-src-2d2929c912249f5cded546ea402051479a4a9b1a.tar.gz |
Make sysinstall's code WARNS=2 clean .
MFC after: 1 week
Diffstat (limited to 'usr.sbin/sysinstall/biosmptable.c')
-rw-r--r-- | usr.sbin/sysinstall/biosmptable.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/sysinstall/biosmptable.c b/usr.sbin/sysinstall/biosmptable.c index d6ee944..5a507bd 100644 --- a/usr.sbin/sysinstall/biosmptable.c +++ b/usr.sbin/sysinstall/biosmptable.c @@ -36,6 +36,7 @@ __FBSDID("$FreeBSD$"); #include <sys/types.h> #include <machine/mptable.h> +#include <err.h> #include <fcntl.h> #include <inttypes.h> #include <paths.h> @@ -151,7 +152,7 @@ static int memread(off_t addr, void* entry, size_t size) { if ((size_t)pread(pfd, entry, size, addr) != size) { - warn("pread (%lu @ 0x%lx)", size, addr); + warn("pread (%zu @ 0x%llx)", size, addr); return 0; } return 1; @@ -232,7 +233,7 @@ biosmptable_check_mpcth(off_t addr) /* mpcth must be in the first 1MB */ if ((u_int32_t)addr >= 1024 * 1024) { - msgDebug("%s: bad mpcth address (0x%lx)\n", __func__, addr); + msgDebug("%s: bad mpcth address (0x%llx)\n", __func__, addr); return (NULL); } |