diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2022-10-10 08:11:14 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-10-11 16:46:25 +0200 |
commit | b6c514bd1c2e13955ddd6a26df2c33ae74f17d0b (patch) | |
tree | c15bcedb9f2f15e41abc69f4bad3a06a92ae7add /commands/mkdir.c | |
parent | 15111afb387482035fc64ca5b621ec6c933ac7f8 (diff) | |
download | barebox-b6c514bd1c2e13955ddd6a26df2c33ae74f17d0b.tar.gz |
treewide: replace errno_str() with %m printf format specifier
Both errno_str() and printf("%m" end up calling strerror(). %m is
more convenient to use, so switch over all instances to it.
No functional change.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20221010061122.2084009-3-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/mkdir.c')
-rw-r--r-- | commands/mkdir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/mkdir.c b/commands/mkdir.c index e7153b8732..01fc0b083b 100644 --- a/commands/mkdir.c +++ b/commands/mkdir.c @@ -37,7 +37,7 @@ static int do_mkdir(int argc, char *argv[]) ret = mkdir(argv[optind], 0); } if (ret) { - printf("could not create %s: %s\n", argv[optind], errno_str()); + printf("could not create %s: %m\n", argv[optind]); return 1; } optind++; |