Skip to content

Commit

Permalink
refactor(dracut-install): strerror(errno) -> %m
Browse files Browse the repository at this point in the history
  • Loading branch information
nabijaczleweli authored and aafeijoo-suse committed Dec 28, 2022
1 parent efd4ca2 commit 94dcac7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/install/dracut-install.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 94dcac7

Please sign in to comment.