projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
dbeffaa
)
afs: Don't log table open error twice.
author
Andre Noll
<maan@tuebingen.mpg.de>
Fri, 13 Apr 2018 07:16:16 +0000
(09:16 +0200)
committer
Andre Noll
<maan@tuebingen.mpg.de>
Sun, 22 Apr 2018 18:27:49 +0000
(20:27 +0200)
If ->open() fails, open_afs_tables() returns a negative error code,
so there is no need to log the error string.
afs.c
patch
|
blob
|
history
diff --git
a/afs.c
b/afs.c
index a5f86f9b1b4623a906fb14ad322f4e9b054b6914..538606add432aef4710c09d5b2826df3d123c933 100644
(file)
--- a/
afs.c
+++ b/
afs.c
@@
-685,8
+685,7
@@
static int open_afs_tables(void)
ret = afs_tables[i].open(database_dir);
if (ret >= 0)
continue;
ret = afs_tables[i].open(database_dir);
if (ret >= 0)
continue;
- PARA_ERROR_LOG("%s init: %s\n", afs_tables[i].name,
- para_strerror(-ret));
+ PARA_ERROR_LOG("could not open %s\n", afs_tables[i].name);
break;
}
if (ret >= 0)
break;
}
if (ret >= 0)