diff options
author | Joe Perches <joe@perches.com> | 2021-01-29 20:08:01 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-02-04 16:56:12 +0100 |
commit | a74ab2ed0def52a993d0cbd9df9d1c4de33c6fbd (patch) | |
tree | 94db4417bb4394ed8fdfc69b316dfc010f61f472 /drivers/misc/pvpanic.c | |
parent | Merge tag 'misc-habanalabs-next-2021-01-27' of https://git.kernel.org/pub/scm... (diff) | |
download | linux-a74ab2ed0def52a993d0cbd9df9d1c4de33c6fbd.tar.xz linux-a74ab2ed0def52a993d0cbd9df9d1c4de33c6fbd.zip |
misc: pvpanic: sysfs_emit uses should have a newline
Add newline terminations to the sysfs_emit uses added by -next
commit 8d6da6575ffe ("misc: pvpanic: introduce events device attribue")
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
Link: https://lore.kernel.org/r/13b1c892d52c27d4caeccc89506aadda74f61365.camel@perches.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/pvpanic.c')
-rw-r--r-- | drivers/misc/pvpanic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/pvpanic.c b/drivers/misc/pvpanic.c index b1e4922a7fda..9f350e05ef68 100644 --- a/drivers/misc/pvpanic.c +++ b/drivers/misc/pvpanic.c @@ -25,13 +25,13 @@ static unsigned int events; static ssize_t capability_show(struct device *dev, struct device_attribute *attr, char *buf) { - return sysfs_emit(buf, "%x", capability); + return sysfs_emit(buf, "%x\n", capability); } static DEVICE_ATTR_RO(capability); static ssize_t events_show(struct device *dev, struct device_attribute *attr, char *buf) { - return sysfs_emit(buf, "%x", events); + return sysfs_emit(buf, "%x\n", events); } static ssize_t events_store(struct device *dev, struct device_attribute *attr, |