Diff between 1b9e48f4c2b98ea88e43bd493c098dcca822a1d0 and e002e80f55217e825d6b8a1c6d27b3b781b5e850
Changed Files
| File | Additions | Deletions | Status |
| tools/btmgmt.c | +10 | -0 | modified |
Full Patch
diff --git a/tools/btmgmt.c b/tools/btmgmt.c
index fc8f0e3..f82461e 100644
--- a/tools/btmgmt.c
+++ b/tools/btmgmt.c
@@ -4640,6 +4640,13 @@ static struct io *setup_stdin(void)
return io;
}
+static void mgmt_debug(const char *str, void *user_data)
+{
+ const char *prefix = user_data;
+
+ print("%s%s", prefix, str);
+}
+
int main(int argc, char *argv[])
{
struct io *input;
@@ -4675,6 +4682,9 @@ int main(int argc, char *argv[])
return EXIT_FAILURE;
}
+ if (getenv("MGMT_DEBUG"))
+ mgmt_set_debug(mgmt, mgmt_debug, "mgmt: ", NULL);
+
if (argc > 0) {
struct cmd_info *c;