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 /lib | |
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 'lib')
-rw-r--r-- | lib/vsprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 3fccfa7a56..4834501ff1 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -232,7 +232,7 @@ char *error_string(char *buf, const char *end, const u8 *errptr, int field_width if (!IS_ERR(errptr)) return raw_pointer(buf, end, errptr, field_width, precision, flags); - return string(buf, end, strerrorp(errptr), field_width, precision, flags); + return string(buf, end, strerror(-PTR_ERR(errptr)), field_width, precision, flags); } static noinline_for_stack |