From 76079847f5503f3ac222bd46d97754d4b3004506 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Fri, 13 Apr 2018 09:16:16 +0200 Subject: [PATCH] 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. --- afs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) -- 2.39.5