command line parsing
[hmcfgusb] / hmcfgusb.c
index b8c1546..75838fe 100644 (file)
@@ -145,7 +145,7 @@ int hmcfgusb_send(struct hmcfgusb_dev *usbdev, unsigned char* send_data, int len
        int cnt;
 
        if (debug)
-               hexdump(send_data, len, "< ");
+               hexdump(send_data, len, "USB < ");
        err = libusb_interrupt_transfer(usbdev->usb_devh, EP_OUT, send_data, len, &cnt, USB_TIMEOUT);
        if (err) {
                fprintf(stderr, "Can't send data: %s\n", usb_strerror(err));
@@ -225,7 +225,7 @@ static void LIBUSB_CALL hmcfgusb_interrupt(struct libusb_transfer *transfer)
        } else {
                if (cb_data && cb_data->cb) {
                        if (debug)
-                               hexdump(transfer->buffer, transfer->actual_length, "> ");
+                               hexdump(transfer->buffer, transfer->actual_length, "USB > ");
                        cb_data->cb(transfer->buffer, transfer->actual_length, cb_data->data);
                } else {
                        hexdump(transfer->buffer, transfer->actual_length, "> ");
Impressum, Datenschutz