diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2017-03-30 16:16:44 +0200 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2017-03-30 16:17:15 +0200 |
commit | f76b10a24ae1d4f63ca92310263b841e117c9246 (patch) | |
tree | 913cfa0eac45723c0712fb1ac938f63e7d739245 | |
parent | d717ebc3eefcd45800f3249594027a5b17bdc789 (diff) | |
download | libmtp-f76b10a24ae1d4f63ca92310263b841e117c9246.tar.gz |
wrong render command, this is opcode not ofc
-rw-r--r-- | src/libopenusb1-glue.c | 5 | ||||
-rw-r--r-- | src/libusb-glue.c | 5 | ||||
-rw-r--r-- | src/libusb1-glue.c | 5 |
3 files changed, 3 insertions, 12 deletions
diff --git a/src/libopenusb1-glue.c b/src/libopenusb1-glue.c index da9b935..4d88f82 100644 --- a/src/libopenusb1-glue.c +++ b/src/libopenusb1-glue.c @@ -1164,10 +1164,7 @@ ptp_usb_sendreq(PTPParams* params, PTPContainer* req, int dataphase) { unsigned long written = 0; unsigned long towrite; - char txt[256]; - - (void) ptp_render_ofc(params, req->Code, sizeof (txt), txt); - LIBMTP_USB_DEBUG("REQUEST: 0x%04x, %s\n", req->Code, txt); + LIBMTP_USB_DEBUG("REQUEST: 0x%04x, %s\n", req->Code, ptp_get_opcode_name(params, req->Code)); /* build appropriate USB container */ usbreq.length = htod32(PTP_USB_BULK_REQ_LEN - diff --git a/src/libusb-glue.c b/src/libusb-glue.c index bdf41b4..722a591 100644 --- a/src/libusb-glue.c +++ b/src/libusb-glue.c @@ -1156,10 +1156,7 @@ ptp_usb_sendreq (PTPParams* params, PTPContainer* req, int dataphase) unsigned long written = 0; unsigned long towrite; - char txt[256]; - - (void) ptp_render_ofc (params, req->Code, sizeof(txt), txt); - LIBMTP_USB_DEBUG("REQUEST: 0x%04x, %s\n", req->Code, txt); + LIBMTP_USB_DEBUG("REQUEST: 0x%04x, %s\n", req->Code, ptp_get_opcode_name(params, req->Code)); /* build appropriate USB container */ usbreq.length=htod32(PTP_USB_BULK_REQ_LEN- diff --git a/src/libusb1-glue.c b/src/libusb1-glue.c index 45572f7..8894378 100644 --- a/src/libusb1-glue.c +++ b/src/libusb1-glue.c @@ -1181,10 +1181,7 @@ ptp_usb_sendreq (PTPParams* params, PTPContainer* req, int dataphase) unsigned long written = 0; unsigned long towrite; - char txt[256]; - - (void) ptp_render_ofc (params, req->Code, sizeof(txt), txt); - LIBMTP_USB_DEBUG("REQUEST: 0x%04x, %s\n", req->Code, txt); + LIBMTP_USB_DEBUG("REQUEST: 0x%04x, %s\n", req->Code, ptp_get_opcode_name(params, req->Code)); /* build appropriate USB container */ usbreq.length=htod32(PTP_USB_BULK_REQ_LEN- |