From f76b10a24ae1d4f63ca92310263b841e117c9246 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Thu, 30 Mar 2017 16:16:44 +0200 Subject: wrong render command, this is opcode not ofc --- src/libopenusb1-glue.c | 5 +---- src/libusb-glue.c | 5 +---- src/libusb1-glue.c | 5 +---- 3 files changed, 3 insertions(+), 12 deletions(-) (limited to 'src') 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- -- cgit v1.2.3