summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2012-02-19 02:17:21 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2012-02-19 02:17:21 +0100
commitfd767c866dc1d0f6a4059a394e24848d4da8e086 (patch)
treefb4864ae17437a505ecf3de8980fdf84709d91d8 /linux
parent0e05e3b5139fe2e3c01f0f2831c24f7fba1c8132 (diff)
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.
Diffstat (limited to 'linux')
-rw-r--r--linux/src/drivers/scsi/advansys.c2
1 files changed, 1 insertions, 1 deletions
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);