]> mj.ucw.cz Git - arexx.git/commitdiff
Rip out USB debugging, it's obsoleted in current libusb v2.0
authorMartin Mares <mj@ucw.cz>
Fri, 17 Apr 2020 17:24:19 +0000 (19:24 +0200)
committerMartin Mares <mj@ucw.cz>
Fri, 17 Apr 2020 17:24:19 +0000 (19:24 +0200)
arexxd.c

index edacdf30cfa6ea3ddf4babb1fbdb4a505d3c1148..cf4b712b82acdc6fbd10e1a8666879e8195c6d9f 100644 (file)
--- a/arexxd.c
+++ b/arexxd.c
@@ -46,7 +46,6 @@ static int use_syslog;
 static int debug_mode;
 static int debug_packets;
 static int debug_raw_data;
-static int debug_usb;
 static char *log_dir = DEFAULT_LOG_DIR;
 static int no_fork;
 
@@ -712,7 +711,6 @@ Options:\n\
 -n, --no-fork          Do not fork\n\
 -p, --debug-packets    Log all packets sent and received\n\
 -r, --debug-raw                Log conversion from raw values\n\
--u, --debug-usb                Enable libusb debug messages (to stdout/stderr)\n\
 -V, --version          Show daemon version\n\
 ");
        exit(1);
@@ -721,7 +719,7 @@ Options:\n\
 int main(int argc, char **argv)
 {
        int opt;
-       while ((opt = getopt_long(argc, argv, "dl:npruV", long_options, NULL)) >= 0)
+       while ((opt = getopt_long(argc, argv, "dl:nprV", long_options, NULL)) >= 0)
                switch (opt) {
                        case 'd':
                                debug_mode++;
@@ -738,9 +736,6 @@ int main(int argc, char **argv)
                        case 'r':
                                debug_raw_data++;
                                break;
-                       case 'u':
-                               debug_usb++;
-                               break;
                        case 'V':
                                printf("arexxd " AREXXD_VERSION "\n");
                                printf("(c) 2011-2018 Martin Mares <mj@ucw.cz>\n");
@@ -754,8 +749,6 @@ int main(int argc, char **argv)
        int err;
        if (err = libusb_init(&usb_ctxt))
                die("Cannot initialize libusb: error %d", err);
-       if (debug_usb)
-               libusb_set_debug(usb_ctxt, 3);
 
        if (!debug_mode) {
                if (chdir(log_dir) < 0)