batman-adv: correct kobject_set_name() arguments

Message ID 1306674334-17397-1-git-send-email-ordex@autistici.org (mailing list archive)
State Accepted, archived
Commit f85ccf52754852dc9fcabf60a2c6a658850b2f3e
Headers

Commit Message

Antonio Quartulli May 29, 2011, 1:05 p.m. UTC
  Compiling against kernel version <2.6.25 was failing due to wrong
parameters.

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
---
 compat.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
  

Comments

Marek Lindner May 29, 2011, 2 p.m. UTC | #1
On Sunday 29 May 2011 15:05:34 Antonio Quartulli wrote:
> Compiling against kernel version <2.6.25 was failing due to wrong
> parameters.

Applied in revision 405ca1d.

Thanks,
Marek
  

Patch

diff --git a/compat.h b/compat.h
index 6842a26..0f0e66e 100644
--- a/compat.h
+++ b/compat.h
@@ -131,7 +131,7 @@  static inline struct kobject *kobject_create_and_add(const char *name,
 	if (!kobj)
 		return NULL;
 
-	kobject_set_name(kobj, name);
+	kobject_set_name(kobj, "%s", name);
 	kobj->ktype = &ktype_bat_wrapper;
 	kobj->kset = NULL;
 	kobj->parent = parent;