Whamcloud - gitweb
Remove spurious trailing \0 bytes.
authorgord-fig <gord-fig>
Mon, 24 Sep 2001 17:40:19 +0000 (17:40 +0000)
committergord-fig <gord-fig>
Mon, 24 Sep 2001 17:40:19 +0000 (17:40 +0000)
lustre/obdclass/proc_lustre.c

index e9fe724..fcd7158 100644 (file)
@@ -76,7 +76,7 @@ static int read_lustre_status(char *page, char **start, off_t offset,
        
        if (obddev->obd_refcnt==0) { 
                /* obd is unused */
        
        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);
        }
        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 */
        }
 
        /* Compute eof and return value */