From 94dcac7ccdfeb2ff7bd7c59c0f8bf46d0698ce3f Mon Sep 17 00:00:00 2001 From: =?utf8?q?=D0=BD=D0=B0=D0=B1?= Date: Wed, 27 Apr 2022 18:57:50 +0200 Subject: [PATCH] refactor(dracut-install): strerror(errno) -> %m --- src/install/dracut-install.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/install/dracut-install.c b/src/install/dracut-install.c index 2d6d50143..dda0cacab 100644 --- a/src/install/dracut-install.c +++ b/src/install/dracut-install.c @@ -714,11 +714,11 @@ static int dracut_mkdir(const char *src) return 1; } } else if (errno != ENOENT) { - log_error("ERROR: stat '%s': %s", parent, strerror(errno)); + log_error("ERROR: stat '%s': %m", parent); return 1; } else { if (mkdir(parent, 0755) < 0) { - log_error("ERROR: mkdir '%s': %s", parent, strerror(errno)); + log_error("ERROR: mkdir '%s': %m", parent); return 1; } } -- 2.47.2