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 <torvalds@linux-foundation.org>
This commit is contained in:
Linus Torvalds 2017-06-15 07:01:51 +09:00 committed by Jef Driesen
parent 8c0ab03706
commit fcfee82cc8

View File

@ -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);