From: Neil Brown <neilb@suse.de>
To: Mikael Abrahamsson <swmike@swm.pp.se>
Cc: linux-raid@vger.kernel.org
Subject: Re: ANNOUNCE: mdadm 3.1.3 - A tool for managing Soft RAID under Linux
Date: Fri, 6 Aug 2010 20:02:34 +1000 [thread overview]
Message-ID: <20100806200234.79818035@notabene> (raw)
In-Reply-To: <alpine.DEB.1.10.1008060906060.19930@uplift.swm.pp.se>
On Fri, 6 Aug 2010 09:08:03 +0200 (CEST)
Mikael Abrahamsson <swmike@swm.pp.se> wrote:
> On Fri, 6 Aug 2010, Neil Brown wrote:
>
> >
> > I am pleased to announce the availability of
> > mdadm version 3.1.3
>
> I get the following compile error:
>
> gcc -Wall -Werror -Wstrict-prototypes -Wextra -Wno-unused-parameter -ggdb
> -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\"
> -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -DMAP_DIR=\"/dev/.mdadm\"
> -DMAP_FILE=\"map\" -DMDMON_DIR=\"/dev/.mdadm\" -DUSE_PTHREADS -c -o
> super-intel.o super-intel.c
> cc1: warnings being treated as errors
> super-intel.c: In function ‘imsm_process_update’:
> super-intel.c:5393: error: format not a string literal and no format arguments
> super-intel.c:5393: error: format not a string literal and no format arguments
> make: *** [super-intel.o] Error 1
>
> This is on a ubuntu 10.04 system with their 2.6.32 kernel.
>
> mdadm-3.1.2 compiles fine on the same system.
>
Thanks for the report - I guess you have a newer compiler than me.
Below patch should fix it, or just
make CWFLAGS=
as the code will still do the right thing.
NeilBrown
diff --git a/super-intel.c b/super-intel.c
index 4cebc8d..b880a74 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -5390,7 +5390,7 @@ static void imsm_process_update(struct supertype *st,
break;
}
- snprintf((char *) dev->volume, MAX_RAID_SERIAL_LEN, name);
+ snprintf((char *) dev->volume, MAX_RAID_SERIAL_LEN, "%s", name);
super->updates_pending++;
break;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2010-08-06 10:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-06 6:59 ANNOUNCE: mdadm 3.1.3 - A tool for managing Soft RAID under Linux Neil Brown
2010-08-06 7:08 ` Mikael Abrahamsson
2010-08-06 10:02 ` Neil Brown [this message]
2010-08-06 11:02 ` Mikael Abrahamsson
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=20100806200234.79818035@notabene \
--to=neilb@suse.de \
--cc=linux-raid@vger.kernel.org \
--cc=swmike@swm.pp.se \
/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