projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15b3d7f
)
misc: pvpanic: sysfs_emit uses should have a newline
author
Joe Perches
<joe@perches.com>
Fri, 29 Jan 2021 19:08:01 +0000
(11:08 -0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 4 Feb 2021 15:56:12 +0000
(16:56 +0100)
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>
drivers/misc/pvpanic.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/misc/pvpanic.c
b/drivers/misc/pvpanic.c
index b1e4922a7fda78e817dc27db86ea3b76ccf1ef78..9f350e05ef68a1dfc76e333f328ca7f66ed3a4cc 100644
(file)
--- 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,