From: Laine Stump <[email protected]>

The message previously just said "Could not create log directory", but
didn't provide the name of the directory, which could be helpful in
determine why the failure occured.

Signed-off-by: Laine Stump <[email protected]>
Reviewed-by: Peter Krempa <[email protected]>
---
 src/util/virlog.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util/virlog.c b/src/util/virlog.c
index c24dfa83c4..9f53c72975 100644
--- a/src/util/virlog.c
+++ b/src/util/virlog.c
@@ -178,7 +178,7 @@ virLogSetDefaultOutputToFile(const char *binary, bool 
privileged)
         old_umask = umask(077);
         if (g_mkdir_with_parents(logdir, 0777) < 0) {
             umask(old_umask);
-            virReportSystemError(errno, "%s", _("Could not create log 
directory"));
+            virReportSystemError(errno, _("Could not create log directory 
'%1$s'"), logdir);
             return -1;
         }
         umask(old_umask);
-- 
2.53.0

Reply via email to