summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2013-11-22 08:21:18 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2013-11-23 09:43:15 +1000
commit49796d6a3274adc0250ee07faa6bc63e41c98740 (patch)
tree0b78ea76bf64d7e9a2ee6be726229ad8a1934a4a
parent0a4336efaafac4c34d4287b5df586bbb418f7f76 (diff)
Fix format-security warnings
sis_driver.c: In function 'SISErrorLog': sis_driver.c:432:5: error: format not a string literal and no format arguments [-Werror=format-security] xf86DrvMsg(pScrn->scrnIndex, X_ERROR, str); ^ sis_driver.c:439:5: error: format not a string literal and no format arguments [-Werror=format-security] xf86DrvMsg(pScrn->scrnIndex, X_ERROR, str); ^ sis_driver.c: In function 'SiSUpdateXineramaScreenInfo': sis_driver.c:1917:4: error: format not a string literal and no format arguments [-Werror=format-security] xf86DrvMsg(pScrn1->scrnIndex, X_INFO, rectxine); ^ sis_driver.c:1924:8: error: format not a string literal and no format arguments [-Werror=format-security] xf86DrvMsg(pScrn1->scrnIndex, X_INFO, rectxine); Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/sis_driver.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sis_driver.c b/src/sis_driver.c
index 80b8d51..bd9c4e1 100644
--- a/src/sis_driver.c
+++ b/src/sis_driver.c
@@ -431,3 +431,3 @@ SISErrorLog(ScrnInfoPtr pScrn, const char *format, ...)
va_start(ap, format);
- xf86DrvMsg(pScrn->scrnIndex, X_ERROR, str);
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "%s", str);
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
@@ -438,3 +438,3 @@ SISErrorLog(ScrnInfoPtr pScrn, const char *format, ...)
" END OF MESSAGE\n");
- xf86DrvMsg(pScrn->scrnIndex, X_ERROR, str);
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "%s", str);
}
@@ -1916,3 +1916,3 @@ SiSUpdateXineramaScreenInfo(ScrnInfoPtr pScrn1)
"Virtual screen size does not match maximum display modes...\n");
- xf86DrvMsg(pScrn1->scrnIndex, X_INFO, rectxine);
+ xf86DrvMsg(pScrn1->scrnIndex, X_INFO, "%s", rectxine);
@@ -1923,3 +1923,3 @@ SiSUpdateXineramaScreenInfo(ScrnInfoPtr pScrn1)
"Only clone modes available for this virtual screen size...\n");
- xf86DrvMsg(pScrn1->scrnIndex, X_INFO, rectxine);
+ xf86DrvMsg(pScrn1->scrnIndex, X_INFO, "%s", rectxine);
}