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/core.c | |
parent | d12b77afb4f0a06e9c7e82a0e88d5f011b862c10 (diff) | |
download | linux-acc0e90fbccbc6e4d48184cba0983ea044e131af.tar.gz linux-acc0e90fbccbc6e4d48184cba0983ea044e131af.tar.bz2 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/core.c')
-rw-r--r-- | drivers/base/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c index 7e8576d7822d..4d59975c24a8 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -875,7 +875,7 @@ int device_add(struct device *dev) * the name, and force the use of dev_name() */ if (dev->init_name) { - dev_set_name(dev, dev->init_name); + dev_set_name(dev, "%s", dev->init_name); dev->init_name = NULL; } @@ -1272,7 +1272,7 @@ struct device *__root_device_register(const char *name, struct module *owner) if (!root) return ERR_PTR(err); - err = dev_set_name(&root->dev, name); + err = dev_set_name(&root->dev, "%s", name); if (err) { kfree(root); return ERR_PTR(err); |