diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2009-06-02 15:39:55 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-06-15 21:30:25 -0700 |
commit | acc0e90fbccbc6e4d48184cba0983ea044e131af (patch) | |
tree | 5dee80c06dcb97739f6fae7e397fa8f4a4f8ee25 /drivers/base/sys.c | |
parent | d12b77afb4f0a06e9c7e82a0e88d5f011b862c10 (diff) | |
download | op-kernel-dev-acc0e90fbccbc6e4d48184cba0983ea044e131af.zip op-kernel-dev-acc0e90fbccbc6e4d48184cba0983ea044e131af.tar.gz |
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 162355c..79a9ae5 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; |