aboutsummaryrefslogtreecommitdiff
path: root/chardev/char-parallel.c
diff options
context:
space:
mode:
authorMads Ynddal <m.ynddal@samsung.com>2023-09-26 12:34:28 +0200
committerStefan Hajnoczi <stefanha@redhat.com>2023-09-26 12:28:51 -0400
commitd1f9259014317baa3bce7db7d4c2e927341e3cae (patch)
treefe2a96fcafdda90c153f5a4656633ae3bf66d7ee /chardev/char-parallel.c
parentce96eb334dc0a3a7f570f422e8a578495f34e4f2 (diff)
downloadqemu-d1f9259014317baa3bce7db7d4c2e927341e3cae.zip
qemu-d1f9259014317baa3bce7db7d4c2e927341e3cae.tar.gz
qemu-d1f9259014317baa3bce7db7d4c2e927341e3cae.tar.bz2
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>
Diffstat (limited to 'chardev/char-parallel.c')
0 files changed, 0 insertions, 0 deletions