sprintf() is deprecated for sysfs, use preferred sysfs_emit() instead.
Unified · Split
| @@ -114,7 +114,7 @@ static DEVICE_ATTR_RO(serial); · 113 unmodified lines | ||
| 114 | 114 | static ssize_t numa_node_show(struct device *dev, struct device_attribute *attr, |
| 115 | 115 | char *buf) |
| 116 | 116 | { |
| 117 | − return sprintf(buf, "%d\n", dev_to_node(dev)); | |
| 117 | + return sysfs_emit(buf, "%d\n", dev_to_node(dev)); | |
| 118 | 118 | } |
| 119 | 119 | static DEVICE_ATTR_RO(numa_node); |
| 120 | 120 | |