All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] Fix build failure with fomat-security. Specify the format type.
@ 2014-03-09 11:56 Ritesh Raj Sarraf
  2014-03-09 11:56 ` [PATCH 2/3] Minor spelling error fixes Ritesh Raj Sarraf
  2014-03-09 11:56 ` [PATCH 3/3] Library with an exit() Ritesh Raj Sarraf
  0 siblings, 2 replies; 5+ messages in thread
From: Ritesh Raj Sarraf @ 2014-03-09 11:56 UTC (permalink / raw)
  To: christophe.varoqui; +Cc: Ritesh Raj Sarraf, dm-devel

cc -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat
-Werror=format-security -D_FORTIFY_SOURCE=2 -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC
-DLIB_STRING=\"lib\" -I.. -c -o rdac.o rdac.c
rdac.c: In function 'libcheck_check':
rdac.c:311:3: error: format not a string literal and no format arguments
[-Werror=format-security]
   MSG(c, (inqfail) ? MSG_RDAC_DOWN_TYPE("inquiry failed") :
   ^
rdac.c:311:3: error: format not a string literal and no format arguments
[-Werror=format-security]
cc1: some warnings being treated as errors
make[2]: *** [rdac.o] Error 1

Signed-off-by: Ritesh Raj Sarraf <rrs@debian.org>
---
 libmultipath/checkers/rdac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libmultipath/checkers/rdac.c b/libmultipath/checkers/rdac.c
index e0b2ea4..00e3c44 100644
--- a/libmultipath/checkers/rdac.c
+++ b/libmultipath/checkers/rdac.c
@@ -308,7 +308,7 @@ libcheck_check (struct checker * c)
 done:
 	switch (ret) {
 	case PATH_DOWN:
-		MSG(c, (inqfail) ? MSG_RDAC_DOWN_TYPE("inquiry failed") :
+		MSG(c, "%s", (inqfail) ? MSG_RDAC_DOWN_TYPE("inquiry failed") :
 			checker_msg_string(&inq));
 		break;
 	case PATH_UP:
-- 
1.9.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-03-10 22:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-09 11:56 [PATCH 1/3] Fix build failure with fomat-security. Specify the format type Ritesh Raj Sarraf
2014-03-09 11:56 ` [PATCH 2/3] Minor spelling error fixes Ritesh Raj Sarraf
2014-03-09 11:56 ` [PATCH 3/3] Library with an exit() Ritesh Raj Sarraf
2014-03-09 12:27   ` Bart Van Assche
2014-03-10 22:22     ` Christophe Varoqui

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.