git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tracing/probes: Fix a warning message to show correct maximum length
[sfrench/cifs-2.6.git]
/
kernel
/
trace
/
trace_probe.c
diff --git
a/kernel/trace/trace_probe.c
b/kernel/trace/trace_probe.c
index 11b63328d6fbcc4391b146bcdc7ced685f89dbcf..52478f033f88f2d38315c887406608554c391a32 100644
(file)
--- a/
kernel/trace/trace_probe.c
+++ b/
kernel/trace/trace_probe.c
@@
-679,8
+679,9
@@
ssize_t traceprobe_probes_write(struct file *file, const char __user *buffer,
if (done + size < count) {
if (buf != kbuf)
break;
+ /* This can accept WRITE_BUFSIZE - 2 ('\n' + '\0') */
pr_warn("Line length is too long: Should be less than %d\n",
- WRITE_BUFSIZE);
+ WRITE_BUFSIZE
- 2
);
ret = -EINVAL;
goto out;
}