commit e47bc6ede4ad2d98957efe028d10e70f990668e7
parent 6ff152669a1a2ea9496cacf4b4bc0e67fa051f0e
Author: Denis Kenzior <denkenz@gmail.com>
Date: Tue, 25 May 2021 13:20:07 -0500
main: Remove dbus-debug -B option
This option has not been used in a very long time, and is of limited
utility since the only thing D-Bus debugging does is hexdumps the
content of D-Bus messages to the terminal.
Diffstat:
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/src/main.c b/src/main.c
@@ -138,7 +138,6 @@ static void usage(void)
"Usage:\n");
printf("\tiwd [options]\n");
printf("Options:\n"
- "\t-B, --dbus-debug Enable D-Bus debugging\n"
"\t-i, --interfaces Interfaces to manage\n"
"\t-I, --nointerfaces Interfaces to ignore\n"
"\t-p, --phys Phys to manage\n"
@@ -150,7 +149,6 @@ static void usage(void)
static const struct option main_options[] = {
{ "developer", no_argument, NULL, 'E' },
- { "dbus-debug", no_argument, NULL, 'B' },
{ "version", no_argument, NULL, 'v' },
{ "interfaces", required_argument, NULL, 'i' },
{ "nointerfaces", required_argument, NULL, 'I' },
@@ -410,7 +408,6 @@ done:
int main(int argc, char *argv[])
{
- bool enable_dbus_debug = false;
int exit_status;
struct l_dbus *dbus;
const char *config_dir;
@@ -420,15 +417,12 @@ int main(int argc, char *argv[])
for (;;) {
int opt;
- opt = getopt_long(argc, argv, "EBi:I:p:P:d::vh",
+ opt = getopt_long(argc, argv, "Ei:I:p:P:d::vh",
main_options, NULL);
if (opt < 0)
break;
switch (opt) {
- case 'B':
- enable_dbus_debug = true;
- break;
case 'E':
developeropt = true;
break;
@@ -540,9 +534,6 @@ int main(int argc, char *argv[])
goto failed_dbus;
}
- if (enable_dbus_debug)
- l_dbus_set_debug(dbus, do_debug, "[DBUS] ", NULL);
-
l_dbus_set_ready_handler(dbus, dbus_ready, dbus, NULL);
l_dbus_set_disconnect_handler(dbus, dbus_disconnected, NULL, NULL);
dbus_init(dbus);