diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-09-07 15:58:04 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-09-07 16:00:08 +0200 |
commit | 0bdcc12f4cddc41868170c85c96680df4fffe433 (patch) | |
tree | b547d9119e3b3ea0659ce2dfa524913ed5c6b5d7 /libdde-linux26/contrib/lib/kobject.c | |
parent | e4039ed7be21456a35fd874027e329229b524348 (diff) |
libdde-linux26: avoid compiler warning
* libdde-linux26/contrib/lib/kobject.c (kset_create): Use string
literal as format string.
Diffstat (limited to 'libdde-linux26/contrib/lib/kobject.c')
-rw-r--r-- | libdde-linux26/contrib/lib/kobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdde-linux26/contrib/lib/kobject.c b/libdde-linux26/contrib/lib/kobject.c index 0487d1f6..a1682ef4 100644 --- a/libdde-linux26/contrib/lib/kobject.c +++ b/libdde-linux26/contrib/lib/kobject.c @@ -794,7 +794,7 @@ static struct kset *kset_create(const char *name, kset = kzalloc(sizeof(*kset), GFP_KERNEL); if (!kset) return NULL; - kobject_set_name(&kset->kobj, name); + kobject_set_name(&kset->kobj, "%s", name); kset->uevent_ops = uevent_ops; kset->kobj.parent = parent_kobj; |