* [PATCH BlueZ] mgmt: Remove mgmt_set_verbose
@ 2022-03-25 18:16 Luiz Augusto von Dentz
2022-03-25 19:42 ` [BlueZ] " bluez.test.bot
2022-03-28 18:00 ` [PATCH BlueZ] " patchwork-bot+bluetooth
0 siblings, 2 replies; 4+ messages in thread
From: Luiz Augusto von Dentz @ 2022-03-25 18:16 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
The likes of btmon already decode the commands/events so there is no
need to have the code hexdump their contents.
---
src/shared/mgmt.c | 22 ----------------------
src/shared/mgmt.h | 1 -
2 files changed, 23 deletions(-)
diff --git a/src/shared/mgmt.c b/src/shared/mgmt.c
index cf518cc2b..4d7b64f2b 100644
--- a/src/shared/mgmt.c
+++ b/src/shared/mgmt.c
@@ -50,7 +50,6 @@ struct mgmt {
mgmt_debug_func_t debug_callback;
mgmt_destroy_func_t debug_destroy;
void *debug_data;
- bool verbose;
};
struct mgmt_request {
@@ -193,15 +192,6 @@ static void mgmt_log(struct mgmt *mgmt, const char *format, ...)
va_end(ap);
}
-static void mgmt_hexdump(struct mgmt *mgmt, char dir, const void *data,
- size_t len)
-{
- if (!mgmt->verbose)
- return;
-
- util_hexdump(dir, data, len, mgmt->debug_callback, mgmt->debug_data);
-}
-
static bool send_request(struct mgmt *mgmt, struct mgmt_request *request)
{
struct iovec iov;
@@ -229,8 +219,6 @@ static bool send_request(struct mgmt *mgmt, struct mgmt_request *request)
DBG(mgmt, "[0x%04x] command 0x%04x", request->index, request->opcode);
- mgmt_hexdump(mgmt, '<', request->buf, ret);
-
queue_push_tail(mgmt->pending_list, request);
return true;
@@ -382,8 +370,6 @@ static bool can_read_data(struct io *io, void *user_data)
if (bytes_read < 0)
return false;
- mgmt_hexdump(mgmt, '>', mgmt->buf, bytes_read);
-
if (bytes_read < MGMT_HDR_SIZE)
return true;
@@ -602,14 +588,6 @@ bool mgmt_set_debug(struct mgmt *mgmt, mgmt_debug_func_t callback,
return true;
}
-void mgmt_set_verbose(struct mgmt *mgmt, bool value)
-{
- if (!mgmt)
- return;
-
- mgmt->verbose = value;
-}
-
bool mgmt_set_close_on_unref(struct mgmt *mgmt, bool do_close)
{
if (!mgmt)
diff --git a/src/shared/mgmt.h b/src/shared/mgmt.h
index 0f3e54c16..b413cea78 100644
--- a/src/shared/mgmt.h
+++ b/src/shared/mgmt.h
@@ -28,7 +28,6 @@ typedef void (*mgmt_debug_func_t)(const char *str, void *user_data);
bool mgmt_set_debug(struct mgmt *mgmt, mgmt_debug_func_t callback,
void *user_data, mgmt_destroy_func_t destroy);
-void mgmt_set_verbose(struct mgmt *mgmt, bool value);
bool mgmt_set_close_on_unref(struct mgmt *mgmt, bool do_close);
--
2.35.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* RE: [BlueZ] mgmt: Remove mgmt_set_verbose
2022-03-25 18:16 [PATCH BlueZ] mgmt: Remove mgmt_set_verbose Luiz Augusto von Dentz
@ 2022-03-25 19:42 ` bluez.test.bot
2022-03-25 20:24 ` Luiz Augusto von Dentz
2022-03-28 18:00 ` [PATCH BlueZ] " patchwork-bot+bluetooth
1 sibling, 1 reply; 4+ messages in thread
From: bluez.test.bot @ 2022-03-25 19:42 UTC (permalink / raw)
To: linux-bluetooth, luiz.dentz
[-- Attachment #1: Type: text/plain, Size: 624 bytes --]
This is an automated email and please do not reply to this email.
Dear Submitter,
Thank you for submitting the patches to the linux bluetooth mailing list.
While preparing the CI tests, the patches you submitted couldn't be applied to the current HEAD of the repository.
----- Output -----
error: patch failed: src/shared/mgmt.c:50
error: src/shared/mgmt.c: patch does not apply
error: patch failed: src/shared/mgmt.h:28
error: src/shared/mgmt.h: patch does not apply
hint: Use 'git am --show-current-patch' to see the failed patch
Please resolve the issue and submit the patches again.
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [BlueZ] mgmt: Remove mgmt_set_verbose
2022-03-25 19:42 ` [BlueZ] " bluez.test.bot
@ 2022-03-25 20:24 ` Luiz Augusto von Dentz
0 siblings, 0 replies; 4+ messages in thread
From: Luiz Augusto von Dentz @ 2022-03-25 20:24 UTC (permalink / raw)
To: linux-bluetooth@vger.kernel.org; +Cc: Tedd Ho-Jeong An
Hi Tedd,
On Fri, Mar 25, 2022 at 12:42 PM <bluez.test.bot@gmail.com> wrote:
>
> This is an automated email and please do not reply to this email.
>
> Dear Submitter,
>
> Thank you for submitting the patches to the linux bluetooth mailing list.
> While preparing the CI tests, the patches you submitted couldn't be applied to the current HEAD of the repository.
>
> ----- Output -----
> error: patch failed: src/shared/mgmt.c:50
> error: src/shared/mgmt.c: patch does not apply
> error: patch failed: src/shared/mgmt.h:28
> error: src/shared/mgmt.h: patch does not apply
> hint: Use 'git am --show-current-patch' to see the failed patch
>
>
> Please resolve the issue and submit the patches again.
Looks like CI tree is outdated.
--
Luiz Augusto von Dentz
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH BlueZ] mgmt: Remove mgmt_set_verbose
2022-03-25 18:16 [PATCH BlueZ] mgmt: Remove mgmt_set_verbose Luiz Augusto von Dentz
2022-03-25 19:42 ` [BlueZ] " bluez.test.bot
@ 2022-03-28 18:00 ` patchwork-bot+bluetooth
1 sibling, 0 replies; 4+ messages in thread
From: patchwork-bot+bluetooth @ 2022-03-28 18:00 UTC (permalink / raw)
To: Luiz Augusto von Dentz; +Cc: linux-bluetooth
Hello:
This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Fri, 25 Mar 2022 11:16:17 -0700 you wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
>
> The likes of btmon already decode the commands/events so there is no
> need to have the code hexdump their contents.
> ---
> src/shared/mgmt.c | 22 ----------------------
> src/shared/mgmt.h | 1 -
> 2 files changed, 23 deletions(-)
Here is the summary with links:
- [BlueZ] mgmt: Remove mgmt_set_verbose
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=6cb6e2ddf447
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-03-28 18:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-25 18:16 [PATCH BlueZ] mgmt: Remove mgmt_set_verbose Luiz Augusto von Dentz
2022-03-25 19:42 ` [BlueZ] " bluez.test.bot
2022-03-25 20:24 ` Luiz Augusto von Dentz
2022-03-28 18:00 ` [PATCH BlueZ] " patchwork-bot+bluetooth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox