Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-2901 mdt: duplicate link names in directory
[fs/lustre-release.git]
/
lustre
/
tests
/
mlink.c
diff --git
a/lustre/tests/mlink.c
b/lustre/tests/mlink.c
index
b0cb509
..
d2843c5
100644
(file)
--- a/
lustre/tests/mlink.c
+++ b/
lustre/tests/mlink.c
@@
-42,18
+42,18
@@
int main(int argc, char ** argv)
{
int main(int argc, char ** argv)
{
-
int rc;
+ int rc;
- if (argc < 3) {
-
printf("U
sage: %s file link\n", argv[0]);
-
return 1;
-
}
+ if (argc < 3) {
+
fprintf(stderr, "u
sage: %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 errno;
-
}
+ }
return 0;
return 0;
-}
+}