Whamcloud - gitweb
Branch b1_8
authoradilger <adilger>
Wed, 25 Feb 2009 05:44:25 +0000 (05:44 +0000)
committeradilger <adilger>
Wed, 25 Feb 2009 05:44:25 +0000 (05:44 +0000)
Fix compile warning.

lustre/tests/createtest.c

index 4b70809..e320556 100644 (file)
@@ -96,8 +96,9 @@ int main(int argc, char *argv[])
                        if (i == S_IFCHR || i == S_IFBLK) {
                                if (st.st_rdev != 0x1234) {
                                        fprintf(stderr, "%s: ERROR rdev %s: "
-                                               "%lu != 0x1234",
-                                               argv[0], name, st.st_rdev);
+                                               "%llu != 0x1234",
+                                               argv[0], name,
+                                               (unsigned long long)st.st_rdev);
                                        exit(13);
                                }
                        }