summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2020-09-28 17:34:29 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-09-29 08:41:53 +0200
commit91084b450226f22a8c6fee5a5762a4d0f44a18f4 (patch)
tree1964a773a70fd8e7e853627d6f2513de07d51d92 /arch
parent94b0c3f8635a6560ed387c957331fe1d720fe775 (diff)
downloadbarebox-91084b450226f22a8c6fee5a5762a4d0f44a18f4.tar.gz
barebox-91084b450226f22a8c6fee5a5762a4d0f44a18f4.tar.xz
vsprintf: add %pe format specifier for printing symbolic error names
Starting with v5.5, Linux has a format specifier for printing error pointers. We have had strerror in barebox before that, but lets wire it into vsprintf with the same format specifier that Linux now uses. This yields less verbose call sites and makes Linux drivers more portable to barebox in future. This also has the potential to reduce code size as the previously "inlined" strerror at callsites can now be replaced by a single vsprintf. Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions