misc: pvpanic: sysfs_emit uses should have a newline
Add newline terminations to the sysfs_emit uses added by -next
commit 8d6da6575f
("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>
This commit is contained in:
Родитель
15b3d7f190
Коммит
a74ab2ed0d
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче