X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fobdclass%2Fproc_lustre.c;h=f83e7a637643386dbb9d9a07172c57d88860d263;hp=e9fe7248714bc2903a749dad63c4a4adba8d1f4d;hb=23cb2304012eca005941811f0585aee5dd985cfc;hpb=d66b78bd055c9f1633bdc973f982502fb8b50a81 diff --git a/lustre/obdclass/proc_lustre.c b/lustre/obdclass/proc_lustre.c index e9fe724..f83e7a6 100644 --- a/lustre/obdclass/proc_lustre.c +++ b/lustre/obdclass/proc_lustre.c @@ -1,5 +1,10 @@ /* proc_lustre.c manages /proc/lustre/obd. * + * Copyright (c) 2001 Rumi Zahir + * + * This code is issued under the GNU General Public License. + * See the file COPYING in this distribution + * * OBD devices materialize in /proc as a directory: * /proc/lustre/obd/ * when /dev/obd is opened. When the device is closed, the @@ -29,8 +34,6 @@ * proc_lustre_remove_obd_entry() removes a * /proc/lustre/obd// entry by name. This is the only * function that is exported to other modules. - * - * Copyright (c) 2001 Rumi Zahir */ #include @@ -76,7 +79,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 +124,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 */