From 696645cef66727daa5769b0f387bc1bff9da15a6 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 14 Jan 2014 03:11:37 -0800 Subject: monitor: Print status for unknown command complete events --- monitor/packet.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'monitor') 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; } -- cgit v1.2.3