projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
vfio/mdev: Use sysfs_emit() to instead of sprintf()
[linux-2.6-microblaze.git]
/
drivers
/
vfio
/
mdev
/
mdev_sysfs.c
diff --git
a/drivers/vfio/mdev/mdev_sysfs.c
b/drivers/vfio/mdev/mdev_sysfs.c
index
abe3359
..
e449063
100644
(file)
--- a/
drivers/vfio/mdev/mdev_sysfs.c
+++ b/
drivers/vfio/mdev/mdev_sysfs.c
@@
-96,7
+96,7
@@
static MDEV_TYPE_ATTR_RO(device_api);
static ssize_t name_show(struct mdev_type *mtype,
struct mdev_type_attribute *attr, char *buf)
{
- return s
printf
(buf, "%s\n",
+ return s
ysfs_emit
(buf, "%s\n",
mtype->pretty_name ? mtype->pretty_name : mtype->sysfs_name);
}