Diff between a0befeaf4107a8de2a20d04f89dc751a6d57ecac and 2ae16730105089917b91c7ed5048410e8cc37950
Changed Files
| File | Additions | Deletions | Status |
| mgmt/main.c | +3 | -1 | modified |
Full Patch
diff --git a/mgmt/main.c b/mgmt/main.c
index 565df63..cee2b2a 100644
--- a/mgmt/main.c
+++ b/mgmt/main.c
@@ -233,7 +233,9 @@ static int mgmt_cmd_status(int mgmt_sk, uint16_t index,
opcode = bt_get_le16(&ev->opcode);
- printf("cmd status, opcode 0x%04x status 0x%02x\n", opcode, ev->status);
+ if (monitor)
+ printf("cmd status, opcode 0x%04x status 0x%02x\n",
+ opcode, ev->status);
if (ev->status != 0 && pending_cmd != NULL &&
opcode == pending_cmd->op) {