Skip to content

Commit 04978e7

Browse files
authored
Merge pull request #21 from JeepWay/show-missing-newline
Fix missing newline in sysfs file kxo_state
2 parents efff9ee + 2829628 commit 04978e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static ssize_t kxo_state_show(struct device *dev,
4848
char *buf)
4949
{
5050
read_lock(&attr_obj.lock);
51-
int ret = snprintf(buf, 6, "%c %c %c\n", attr_obj.display, attr_obj.resume,
51+
int ret = snprintf(buf, 7, "%c %c %c\n", attr_obj.display, attr_obj.resume,
5252
attr_obj.end);
5353
read_unlock(&attr_obj.lock);
5454
return ret;

0 commit comments

Comments
 (0)