tools/libs/guest: LZMA_OPTIONS_ERROR message cleanup
PATCH 1/1 tools/libs/guest: LZMA_OPTIONS_ERROR message cleanup
Code cleanup. No functional change.
The current message is formatted as:
DOMPRINTF("%s: %s decompression error: %s",__FUNCTION__, what, msg);free(out_buf);
goto lzma_cleanup;
Which outputs: Unsupported compression options
I have formatted the message to give insight to users who may encounter compression filters such as BCJ filters without cluttering the log output.
The other option was to simply remove the "// FIXME: Better message?" line and leave the message as is to cleanup the codebase.
Signed-off-by Andrew Mbugua <[email protected]>
---
tools/libs/guest/xg_dom_bzimageloader.c +1 -2
@@ -217,8 +217,7 @@ static int _xc_try_lzma_decode(break ;case LZMA_OPTIONS_ERROR : -// FIXME: Better message? - msg ="Unsupported compression options" ; + msg ="Unsupported compression options or filters" ;break ;case LZMA_DATA_ERROR :