Whamcloud - gitweb
- small fixes.
authoryury <yury>
Tue, 16 Nov 2004 14:57:59 +0000 (14:57 +0000)
committeryury <yury>
Tue, 16 Nov 2004 14:57:59 +0000 (14:57 +0000)
lustre/mds/lproc_mds.c

index 37d6d67..d94d8cd 100644 (file)
@@ -97,7 +97,7 @@ static int lprocfs_mds_wr_config_update(struct file *file, const char *buffer,
 }
 
 static int lprocfs_rd_last_fid(char *page, char **start, off_t off,
-                               unsigned long count, int *eof, void *data)
+                               int count, int *eof, void *data)
 {
         struct obd_device *obd = (struct obd_device *)data;
         struct mds_obd *mds = &obd->u.mds;
@@ -112,13 +112,13 @@ static int lprocfs_rd_last_fid(char *page, char **start, off_t off,
 }
 
 static int lprocfs_rd_group(char *page, char **start, off_t off,
-                            unsigned long count, int *eof, void *data)
+                            int count, int *eof, void *data)
 {
         struct obd_device *obd = (struct obd_device *)data;
         struct mds_obd *mds = &obd->u.mds;
 
         *eof = 1;
-        return snprintf(page, count, LPD64"\n", mds->mds_num);
+        return snprintf(page, count, "%lu\n", (unsigned long)mds->mds_num);
 }
 
 struct lprocfs_vars lprocfs_mds_obd_vars[] = {