summaryrefslogtreecommitdiff
path: root/libdde-linux26/contrib/drivers/base
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2015-09-08 10:10:56 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-09-08 10:10:56 +0200
commiteecbb7e726e5e6c1978400cd6e48f3b4b9e861fb (patch)
treedecdf12178f83b067bfde5348e544bd740513b13 /libdde-linux26/contrib/drivers/base
parent0bdcc12f4cddc41868170c85c96680df4fffe433 (diff)
libdde-linux26: avoid compiler warning
* libdde-linux26/contrib/drivers/base/attribute_container.c (attribute_container_add_device): Use string literal as format string.
Diffstat (limited to 'libdde-linux26/contrib/drivers/base')
-rw-r--r--libdde-linux26/contrib/drivers/base/attribute_container.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdde-linux26/contrib/drivers/base/attribute_container.c b/libdde-linux26/contrib/drivers/base/attribute_container.c
index b9cda053..e0f7859f 100644
--- a/libdde-linux26/contrib/drivers/base/attribute_container.c
+++ b/libdde-linux26/contrib/drivers/base/attribute_container.c
@@ -167,7 +167,7 @@ attribute_container_add_device(struct device *dev,
ic->classdev.parent = get_device(dev);
ic->classdev.class = cont->class;
cont->class->dev_release = attribute_container_release;
- dev_set_name(&ic->classdev, dev_name(dev));
+ dev_set_name(&ic->classdev, "%s", dev_name(dev));
if (fn)
fn(cont, dev, &ic->classdev);
else