lkml.org 
[lkml]   [2004]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[TRIVIAL PATCH] use size_t length specifier in mptbase.c
Date
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
===== 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;
\
 
 \ /
  Last update: 2005-03-22 14:05    [W:0.027 / U:0.668 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site