From 2ae16730105089917b91c7ed5048410e8cc37950 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 27 Oct 2011 10:42:37 +0200 Subject: [PATCH] Only print command status when for monitor mode in btmgmt --- mgmt/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mgmt/main.c b/mgmt/main.c index 565df6304..cee2b2a52 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) { -- 2.47.3