common: splash_source: fix cryptic error messages
PATCH 1/1 common: splash_source: fix cryptic error messages
Some error messages emitted while loading the splash image are too cryptic and don't provide any insights into the failure being a splash related issue, such as 'Error (-2): cannot determine file size' etc.
This patch fixes the error codes by adding the function name to the error print.
--- common/splash_source.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
common/splash_source.c +3 -3
@@ -159,12 +159,12 @@ static int splash_select_fs_dev(struct splash_location *location) res = -ENODEV ;break ;default : -printf ("Error: unsupported location storage.\n" ); +printf ("Error: %s: unsupported location storage.\n" , __func__);return -ENODEV ; }if (res) -printf ("Error: could not access storage.\n" ); +printf ("Error: %s: could not access storage.\n" , __func__);return res; }
@@ -284,7 +284,7 @@ static int splash_load_fs(struct splash_location *location, ulong bmp_load_addr) res =fs_size (splash_file, &bmp_size);if (res) { -printf ("Error (%d): cannot determine file size\n" , res); + printf("Error: %s: cannot determine file size (%d)\n", __func__ res); goto out; }
---
base-commit: 8bc2a5196c1c0bb5dbdaca073323da0015a0de37
change-id: 20260312-fix_splash_error_message-69a5ce19118f
Best regards,
Signature · 1 line
Anshul Dalal <[email protected]>
Quoted 8 lines · Anshul Dalal
Some error messages emitted while loading the splash image are too cryptic and don't provide any insights into the failure being a splash related issue, such as 'Error (-2): cannot determine file size' etc.
This patch fixes the error codes by adding the function name to the error print.
[...]
Applied to u-boot/next, thanks!
[1/1] common: splash_source: fix cryptic error messages
commit: 3c32572a27df779578e2d6f9a07dd17fe31dc2e2
Signature · 1 line
Tom