From: Andre Noll Date: Fri, 13 Apr 2018 07:16:16 +0000 (+0200) Subject: afs: Don't log table open error twice. X-Git-Tag: v0.6.2~12 X-Git-Url: http://git.tuebingen.mpg.de/?a=commitdiff_plain;ds=sidebyside;h=76079847f5503f3ac222bd46d97754d4b3004506;p=paraslash.git afs: Don't log table open error twice. If ->open() fails, open_afs_tables() returns a negative error code, so there is no need to log the error string. --- diff --git a/afs.c b/afs.c index a5f86f9b..538606ad 100644 --- 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; - 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)