From fd767c866dc1d0f6a4059a394e24848d4da8e086 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 19 Feb 2012 02:17:21 +0100 Subject: Fix format for string print * linux/src/drivers/scsi/advansys.c (asc_prt_line): Use %s format for printing a mere string, not the string. --- linux/src/drivers/scsi/advansys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/src/drivers/scsi/advansys.c b/linux/src/drivers/scsi/advansys.c index 05cd0f6..b7bfcc1 100644 --- a/linux/src/drivers/scsi/advansys.c +++ b/linux/src/drivers/scsi/advansys.c @@ -9194,7 +9194,7 @@ asc_prt_line(char *buf, int buflen, char *fmt, ...) ret = vsprintf(s, fmt, args); ASC_ASSERT(ret < ASC_PRTLINE_SIZE); if (buf == NULL) { - (void) printk(s); + (void) printk("%s", s); ret = 0; } else { ret = ASC_MIN(buflen, ret); -- cgit v1.2.3