summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2023-10-09 13:53:10 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2023-10-10 16:36:33 +0200
commit2af98aa5339afcd3886b0afeb85dfbaef1e51ffb (patch)
treeeb27173a0ad6c6784d46c2f329addb085bb7384a /lib
parentbc58525288f94f907ee81b63bbca00a9825120a6 (diff)
downloadbarebox-2af98aa5339afcd3886b0afeb85dfbaef1e51ffb.tar.gz
barebox-2af98aa5339afcd3886b0afeb85dfbaef1e51ffb.tar.xz
uncompress: make use of error_fn in uncompress_buf_to_buf
uncompress_buf_to_buf already accepts an error_fn, but didn't make use of it and instead relied on the default uncompress_err_stdout. Fix this. The user-visible effect of this is that failure to decompress FIT image contents is now printed with pr_err instead of the default printf. No other upstream users of uncompress_buf_to_buf currently exist. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20231009115310.2398292-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/uncompress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/uncompress.c b/lib/uncompress.c
index 0608e9f9d3..71ac882b87 100644
--- a/lib/uncompress.c
+++ b/lib/uncompress.c
@@ -199,7 +199,7 @@ ssize_t uncompress_buf_to_buf(const void *input, size_t input_len,
goto free_temp;
}
- ret = uncompress_buf_to_fd(input, input_len, outfd, uncompress_err_stdout);
+ ret = uncompress_buf_to_fd(input, input_len, outfd, error_fn);
if (ret)
goto close_outfd;