From 69329cf22c7a7cc620f14e7a94eb9a4419723f49 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 14 Nov 2016 11:31:20 +0100 Subject: [PATCH] lib:util: Don't print lstat warning on ERROR debug level If we are a client and can't access the lock directory don't confuse a user. Signed-off-by: Andreas Schneider Reviewed-by: Jeremy Allison --- lib/util/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/util/util.c b/lib/util/util.c index a8bbc158f60..56056a3403c 100644 --- a/lib/util/util.c +++ b/lib/util/util.c @@ -202,8 +202,8 @@ _PUBLIC_ bool directory_create_or_exist(const char *dname, } if (errno != ENOENT) { - DEBUG(0, ("lstat failed on directory %s: %s\n", - dname, strerror(errno))); + DBG_WARNING("lstat failed on directory %s: %s\n", + dname, strerror(errno)); return false; } -- 2.11.4.GIT