projects
/
platform
/
upstream
/
bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66fcca1
)
adapter: Don't use DBG in mgmt_debug
author
Luiz Augusto von Dentz
<luiz.von.dentz@intel.com>
Tue, 22 Mar 2022 22:57:53 +0000
(15:57 -0700)
committer
Ayush Garg
<ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:53 +0000
(14:55 +0530)
mgmt_debug callback is used to print debug strings from mgmt instances
which includes the file and function names so using DBG would add yet
another set of file and function prefixes which makes the logs
confusing.
Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/adapter.c
patch
|
blob
|
history
diff --git
a/src/adapter.c
b/src/adapter.c
index
0b31e64
..
7123028
100644
(file)
--- a/
src/adapter.c
+++ b/
src/adapter.c
@@
-16797,9
+16797,7
@@
static void read_version_complete(uint8_t status, uint16_t length,
static void mgmt_debug(const char *str, void *user_data)
{
- const char *prefix = user_data;
-
- info("%s%s", prefix, str);
+ DBG_IDX(0xffff, "%s", str);
}
int adapter_init(void)
@@
-16812,8
+16810,7
@@
int adapter_init(void)
return -EIO;
}
- if (getenv("MGMT_DEBUG"))
- mgmt_set_debug(mgmt_primary, mgmt_debug, "mgmt: ", NULL);
+ mgmt_set_debug(mgmt_primary, mgmt_debug, NULL, NULL);
DBG("sending read version command");