diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c
index 484f58750eba0438cff11dcf0979ceb4ef46738b..2da59a0ac4ac4a527f3db356893b614ed0a0a585 100644
--- a/net/core/net-sysfs.c
+++ b/net/core/net-sysfs.c
@@ -498,7 +498,7 @@ int netdev_register_kobject(struct net_device *net)
 	dev->groups = groups;
 
 	BUILD_BUG_ON(BUS_ID_SIZE < IFNAMSIZ);
-	dev_set_name(dev, net->name);
+	dev_set_name(dev, "%s", net->name);
 
 #ifdef CONFIG_SYSFS
 	*groups++ = &netstat_group;