Whamcloud - gitweb
LU-2901 mdt: duplicate link names in directory
[fs/lustre-release.git] / lustre / tests / mlink.c
index b0cb509..d2843c5 100644 (file)
 
 int main(int argc, char ** argv)
 {
-        int rc;
+       int rc;
 
-        if (argc < 3) { 
-                printf("Usage: %s file link\n", argv[0]);
-                return 1;
-        }
+       if (argc < 3) {
+               fprintf(stderr, "usage: %s file link\n", argv[0]);
+               return 1;
+       }
 
-        rc = link(argv[1], argv[2]);
-        if (rc) { 
-                printf("link(%s, %s) error: %s\n", argv[1], argv[2],
-                      strerror(errno));
+       rc = link(argv[1], argv[2]);
+       if (rc) {
+               fprintf(stderr, "link(%s, %s) error: %s\n",
+                       argv[1], argv[2], strerror(errno));
                return errno;
-        }
+       }
        return 0;
-} 
+}