simpletrace: improved error handling on struct unpack
A failed call to `read_header` wouldn't be handled the same for the two different code paths (one path would try to use `None` as a list). Changed to raise exception to be handled centrally. This also allows for easier unpacking, as errors has been filtered out. Reviewed-by:Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by:
Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by:
Mads Ynddal <m.ynddal@samsung.com> Message-id: 20230926103436.25700-7-mads@ynddal.dk Signed-off-by:
Stefan Hajnoczi <stefanha@redhat.com>
Please register or sign in to comment