Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f43422c
)
Remove spurious trailing \0 bytes.
author
gord-fig
<gord-fig>
Mon, 24 Sep 2001 17:40:19 +0000
(17:40 +0000)
committer
gord-fig
<gord-fig>
Mon, 24 Sep 2001 17:40:19 +0000
(17:40 +0000)
lustre/obdclass/proc_lustre.c
patch
|
blob
|
history
diff --git
a/lustre/obdclass/proc_lustre.c
b/lustre/obdclass/proc_lustre.c
index
e9fe724
..
fcd7158
100644
(file)
--- a/
lustre/obdclass/proc_lustre.c
+++ b/
lustre/obdclass/proc_lustre.c
@@
-76,7
+76,7
@@
static int read_lustre_status(char *page, char **start, off_t offset,
if (obddev->obd_refcnt==0) {
/* obd is unused */
- p += sprintf(&page[p], "open but unused\n
\0
");
+ p += sprintf(&page[p], "open but unused\n");
}
else { /* obd in use */
p += sprintf(&page[p], "refcnt(%d)", obddev->obd_refcnt);
@@
-121,7
+121,7
@@
static int read_lustre_status(char *page, char **start, off_t offset,
}
}
- p += sprintf(&page[p], "\n
\0
");
+ p += sprintf(&page[p], "\n");
}
/* Compute eof and return value */