diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2020-09-28 17:34:30 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-09-29 08:41:53 +0200 |
commit | 12d74001d52911dfb96d81b774183aeaba21370c (patch) | |
tree | f5af209ec784ab4bf486d55fdf7b870d17b2a7f4 /commands | |
parent | 91084b450226f22a8c6fee5a5762a4d0f44a18f4 (diff) | |
download | barebox-12d74001d52911dfb96d81b774183aeaba21370c.tar.gz barebox-12d74001d52911dfb96d81b774183aeaba21370c.tar.xz |
vsprintf: retire strerrorp in favor of %pe
strerrorp() is only used along with printf. We now have a format
specifier for printing error pointers directly, so use that and
remove strerrorp.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
-rw-r--r-- | commands/of_diff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/of_diff.c b/commands/of_diff.c index 8acfd42a6b..ec039776cf 100644 --- a/commands/of_diff.c +++ b/commands/of_diff.c @@ -64,14 +64,14 @@ static int do_of_diff(int argc, char *argv[]) b = get_tree(argv[2], root); if (IS_ERR(a)) { - printf("Cannot read %s: %s\n", argv[1], strerrorp(a)); + printf("Cannot read %s: %pe\n", argv[1], a); ret = COMMAND_ERROR; a = NULL; goto out; } if (IS_ERR(b)) { - printf("Cannot read %s: %s\n", argv[2], strerrorp(b)); + printf("Cannot read %s: %pe\n", argv[2], b); ret = COMMAND_ERROR; b = NULL; goto out; |