diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2014-01-14 03:11:37 -0800 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-01-14 03:11:37 -0800 |
commit | 696645cef66727daa5769b0f387bc1bff9da15a6 (patch) | |
tree | 18a59aabaa33093f4030eb63c6c987880f4e31d5 /monitor | |
parent | 0796d17886c79429fa9dc6c25761a2c559d09aad (diff) |
monitor: Print status for unknown command complete events
Diffstat (limited to 'monitor')
-rw-r--r-- | monitor/packet.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/monitor/packet.c b/monitor/packet.c index 879fe22c0..11a6a57ce 100644 --- a/monitor/packet.c +++ b/monitor/packet.c @@ -6371,14 +6371,12 @@ static void cmd_complete_evt(const void *data, uint8_t size) " (0x%2.2x|0x%4.4x) ncmd %d", ogf, ocf, evt->ncmd); if (!opcode_data || !opcode_data->rsp_func) { - if (size - 3 == 1) { + if (size > 3) { uint8_t status = *((uint8_t *) (data + 3)); print_status(status); - return; + packet_hexdump(data + 4, size - 4); } - - packet_hexdump(data + 3, size - 3); return; } |