drivers core: Miscellaneous changes for sysfs_emit
[linux-2.6-microblaze.git] / drivers / base / bus.c
index 886e905..a9c23ec 100644 (file)
@@ -229,7 +229,7 @@ static DRIVER_ATTR_IGNORE_LOCKDEP(bind, S_IWUSR, NULL, bind_store);
 
 static ssize_t drivers_autoprobe_show(struct bus_type *bus, char *buf)
 {
-       return sprintf(buf, "%d\n", bus->p->drivers_autoprobe);
+       return sysfs_emit(buf, "%d\n", bus->p->drivers_autoprobe);
 }
 
 static ssize_t drivers_autoprobe_store(struct bus_type *bus,