From a529c6a2dc2a103d56cc9b64c32be1bf325af8f1 Mon Sep 17 00:00:00 2001 From: Matt Jacob Date: Sun, 26 Mar 2006 07:16:17 +0000 Subject: [PATCH] Correct bad format args. Interesting- the lines that generated the error on sparc64 hadn't changed since the last checkin, pass LINT on other platforms and mpt doesn't work on sparc64 anyway and the tinderbox build didn't work for me in a cross build case on my main build machine (which runs RELENG_6). Sigh. Still need to try harder. --- sys/dev/mpt/mpt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/mpt/mpt.c b/sys/dev/mpt/mpt.c index f780e8825c0..0831f92e1b5 100644 --- a/sys/dev/mpt/mpt.c +++ b/sys/dev/mpt/mpt.c @@ -1342,7 +1342,7 @@ mpt_recv_handshake_reply(struct mpt_softc *mpt, size_t reply_len, void *reply) /* With the second word, we can now look at the length */ if (((reply_len >> 1) != hdr->MsgLength)) { mpt_prt(mpt, "reply length does not match message length: " - "got 0x%02x, expected 0x%02x\n", + "got 0x%02x, expected 0x%02zx\n", hdr->MsgLength << 2, reply_len << 1); } @@ -1644,7 +1644,7 @@ mpt_read_config_info_ioc(struct mpt_softc *mpt) if (rv) return (rv); - mpt_lprt(mpt, MPT_PRT_DEBUG, "IOC Page 2 Header: ver %x, len %x, " + mpt_lprt(mpt, MPT_PRT_DEBUG, "IOC Page 2 Header: ver %x, len %zx, " "num %x, type %x\n", hdr.PageVersion, hdr.PageLength * sizeof(uint32_t), hdr.PageNumber, hdr.PageType);