diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2009-06-03 00:39:55 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-06-16 06:30:25 +0200 |
commit | acc0e90fbccbc6e4d48184cba0983ea044e131af (patch) | |
tree | 5dee80c06dcb97739f6fae7e397fa8f4a4f8ee25 /drivers/base/sys.c | |
parent | firmware: remove broken example files (diff) | |
download | linux-acc0e90fbccbc6e4d48184cba0983ea044e131af.tar.xz linux-acc0e90fbccbc6e4d48184cba0983ea044e131af.zip |
driver core: fix gcc 4.3.3 warnings about string literals
This removes the
warning: format not a string literal and no format arguments
warnings in the driver core that gcc 4.3.3 complains about.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base/sys.c')
-rw-r--r-- | drivers/base/sys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/sys.c b/drivers/base/sys.c index 162355cd745a..79a9ae5238ac 100644 --- a/drivers/base/sys.c +++ b/drivers/base/sys.c @@ -141,7 +141,7 @@ int sysdev_class_register(struct sysdev_class *cls) cls->kset.kobj.ktype = &ktype_sysdev_class; cls->kset.kobj.kset = system_kset; - retval = kobject_set_name(&cls->kset.kobj, cls->name); + retval = kobject_set_name(&cls->kset.kobj, "%s", cls->name); if (retval) return retval; |