Skip to content

Commit

Permalink
misc: pvpanic: sysfs_emit uses should have a newline
Browse files Browse the repository at this point in the history
Add newline terminations to the sysfs_emit uses added by -next
commit 8d6da65 ("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>
  • Loading branch information
JoePerches authored and gregkh committed Feb 4, 2021
1 parent 15b3d7f commit a74ab2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/misc/pvpanic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a74ab2e

Please sign in to comment.