From f1313dfc7e78868a4c3090dfe182113ce54cdff3 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Wed, 28 Jul 2010 18:41:46 +0000 Subject: [PATCH] Minor compiler warnings cleanup git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1887 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_sysfs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scst/src/scst_sysfs.c b/scst/src/scst_sysfs.c index 2f76abd9d..c7b33fe9f 100644 --- a/scst/src/scst_sysfs.c +++ b/scst/src/scst_sysfs.c @@ -1960,7 +1960,7 @@ static ssize_t scst_luns_mgmt_show(struct kobject *kobj, "param_name=value pairs separated by ';'\n" "\nThe following parameters available: read_only."; - return sprintf(buf, help); + return sprintf(buf, "%s", help); } static ssize_t scst_luns_mgmt_store(struct kobject *kobj, @@ -2309,7 +2309,7 @@ static ssize_t scst_ini_group_mgmt_show(struct kobject *kobj, static char *help = "Usage: echo \"create GROUP_NAME\" >mgmt\n" " echo \"del GROUP_NAME\" >mgmt\n"; - return sprintf(buf, help); + return sprintf(buf, "%s", help); } static ssize_t scst_ini_group_mgmt_store(struct kobject *kobj, @@ -2640,7 +2640,7 @@ static ssize_t scst_acg_ini_mgmt_show(struct kobject *kobj, " echo \"clear\" " ">mgmt\n"; - return sprintf(buf, help); + return sprintf(buf, "%s", help); } static ssize_t scst_acg_ini_mgmt_store(struct kobject *kobj, @@ -3632,7 +3632,7 @@ static ssize_t scst_devt_pass_through_mgmt_show(struct kobject *kobj, { char *help = "Usage: echo \"add_device H:C:I:L\" >mgmt\n" " echo \"del_device H:C:I:L\" >mgmt\n"; - return sprintf(buf, help); + return sprintf(buf, "%s", help); } static ssize_t scst_devt_pass_through_mgmt_store(struct kobject *kobj,