From fcfee82cc875126db069fe2644cea08e42b921d0 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Thu, 15 Jun 2017 07:01:51 +0900 Subject: [PATCH] Scubapro G2: add missed command packet logging I did the packet logging for the received data side, but forgot to do the same thing on the command transfer side, which makes the debug logs a bit less useful. Signed-off-by: Linus Torvalds --- src/uwatec_g2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/uwatec_g2.c b/src/uwatec_g2.c index 7fb8e0d..a1a2932 100644 --- a/src/uwatec_g2.c +++ b/src/uwatec_g2.c @@ -108,6 +108,8 @@ uwatec_g2_transfer (uwatec_g2_device_t *device, const unsigned char command[], u return DC_STATUS_INVALIDARGS; } + HEXDUMP (device->base.context, DC_LOGLEVEL_DEBUG, "cmd", command, csize); + buf[0] = csize; memcpy(buf + 1, command, csize); status = dc_usbhid_write (device->usbhid, buf, csize + 1, &transferred);