Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-10401 procs: print new line based on distro
[fs/lustre-release.git]
/
libcfs
/
libcfs
/
debug.c
diff --git
a/libcfs/libcfs/debug.c
b/libcfs/libcfs/debug.c
index
280ada3
..
cd6cfdb
100644
(file)
--- a/
libcfs/libcfs/debug.c
+++ b/
libcfs/libcfs/debug.c
@@
-132,7
+132,9
@@
static int param_get_delay(char *buffer, cfs_kernel_param_arg_t *kp)
{
unsigned int d = *(unsigned int *)kp->arg;
- return sprintf(buffer, "%lu", jiffies_to_msecs(d * 10) / MSEC_PER_SEC);
+ param_get_byte(buffer, kp);
+ return sprintf(buffer, "%lu%c", jiffies_to_msecs(d * 10) / MSEC_PER_SEC,
+ strnchr(buffer, PAGE_SIZE, '\n') ? '\n' : '\0');
}
unsigned int libcfs_console_max_delay;