Whamcloud - gitweb
b=14901
[fs/lustre-release.git] / lustre / tests / test_brw.c
index d225b47..fe18021 100644 (file)
@@ -3,7 +3,9 @@
  */
 
 /* for O_DIRECT */
-#define  _GNU_SOURCE
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
 
 #include <stdio.h>
 #include <string.h>
@@ -81,7 +83,7 @@ int main(int argc, char **argv)
 {
         int fd;
         char *buf;
-        loff_t count, last, offset;
+        long long count, last, offset;
         long pg_vec, len;
         __u64 objid;
         struct stat st;
@@ -152,8 +154,8 @@ int main(int argc, char **argv)
                 objid = 3;
         }
 
-        printf("%s: %s on %s(objid "LPX64") for "LPSZ"x%ld pages \n",
-               argv[0], 
+        printf("%s: %s on %s(objid "LPX64") for %llux%ld pages \n",
+               argv[0],
 #ifdef O_DIRECT
                flags & O_DIRECT ? "directio" : "i/o",
 #else