From a5783264f7975b4e8f1d012bc033a10ee6e5b19c Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 2 Mar 2012 03:24:13 +0200 Subject: [PATCH] mgmtops: Use error() instead of DBG() for command failures --- plugins/mgmtops.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/mgmtops.c b/plugins/mgmtops.c index c91e93043..0b5a9408b 100644 --- a/plugins/mgmtops.c +++ b/plugins/mgmtops.c @@ -1404,7 +1404,9 @@ static void mgmt_cmd_status(int sk, uint16_t index, void *buf, size_t len) opcode = btohs(bt_get_unaligned(&ev->opcode)); - DBG("status %u opcode %u (index %u)", ev->status, opcode, index); + error("hci%u: %s (0x%04x) failed: %s (0x%02x)", index, + mgmt_opstr(opcode), opcode, mgmt_errstr(ev->status), + ev->status); switch (opcode) { case MGMT_OP_READ_LOCAL_OOB_DATA: -- 2.47.3