mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jesse Barnes <jbarnes@engr.sgi.com>
To: linux-kernel@vger.kernel.org, akpm@osdl.org
Subject: [TRIVIAL PATCH] use size_t length specifier in mptbase.c
Date: Wed, 11 Aug 2004 14:26:15 -0700	[thread overview]
Message-ID: <200408111426.15537.jbarnes@engr.sgi.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 380 bytes --]

Looks like mptbase.c is using offsetof but trying to use %d instead of %zd 
when printing a warning.  Fix it up to reduce warnings when compiling on 
systems where size_t isn't 32 bits.  With this patch and Alex's earlier one 
to fix up some ACPI warnings applied, the sn2_defconfig target is error and 
warning free.

Signed-off-by: Jesse Barnes <jbarnes@sgi.com>

Thanks,
Jesse

[-- Attachment #2: mptbase-size_t-fix.patch --]
[-- Type: text/plain, Size: 514 bytes --]

===== drivers/message/fusion/mptbase.c 1.26 vs edited =====
--- 1.26/drivers/message/fusion/mptbase.c	2004-06-26 19:26:07 -07:00
+++ edited/drivers/message/fusion/mptbase.c	2004-08-11 14:09:39 -07:00
@@ -2416,7 +2416,7 @@
 		}
 	} else {
 		printk(MYIOC_s_ERR_FMT 
-		     "Invalid IOC facts reply, msgLength=%d offsetof=%d!\n",
+		     "Invalid IOC facts reply, msgLength=%d offsetof=%zd!\n",
 		     ioc->name, facts->MsgLength, (offsetof(IOCFactsReply_t,
 		     RequestFrameSize)/sizeof(u32)));
 		return -66;

                 reply	other threads:[~2004-08-11 21:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200408111426.15537.jbarnes@engr.sgi.com \
    --to=jbarnes@engr.sgi.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®