aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2012-03-02 03:24:13 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2012-03-02 03:24:13 +0200
commita5783264f7975b4e8f1d012bc033a10ee6e5b19c (patch)
tree6e8cdb64ae407c762fa931a0c013d9e4dee5bae8 /plugins
parent6ed27370c0f0a7bc55674abf6771b17b1a77e083 (diff)
downloadbluez-a5783264f7975b4e8f1d012bc033a10ee6e5b19c.tar.gz
bluez-a5783264f7975b4e8f1d012bc033a10ee6e5b19c.tar.xz
bluez-a5783264f7975b4e8f1d012bc033a10ee6e5b19c.zip
mgmtops: Use error() instead of DBG() for command failures
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mgmtops.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mgmtops.c b/plugins/mgmtops.c
index c91e9304..0b5a9408 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: