diff options
| author | Mads Ynddal <m.ynddal@samsung.com> | 2023-09-26 12:34:28 +0200 |
|---|---|---|
| committer | Stefan Hajnoczi <stefanha@redhat.com> | 2023-09-26 12:28:51 -0400 |
| commit | d1f9259014317baa3bce7db7d4c2e927341e3cae (patch) | |
| tree | fe2a96fcafdda90c153f5a4656633ae3bf66d7ee /python/qemu/machine/console_socket.py | |
| parent | ce96eb334dc0a3a7f570f422e8a578495f34e4f2 (diff) | |
| download | focaccia-qemu-d1f9259014317baa3bce7db7d4c2e927341e3cae.tar.gz focaccia-qemu-d1f9259014317baa3bce7db7d4c2e927341e3cae.zip | |
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 'python/qemu/machine/console_socket.py')
0 files changed, 0 insertions, 0 deletions