diff options
author | 2020-08-02 01:59:47 +0200 | |
---|---|---|
committer | 2020-08-02 01:59:47 +0200 | |
commit | b24f86e57498239bf38b958f51e8ca0650a17a49 (patch) | |
tree | e103f913a8d3b8278484218bd3513911042d81a3 /src | |
parent | 2f8a4a727fea93e8794d9a0b30773d61973a6349 (diff) | |
download | usbmuxd-b24f86e57498239bf38b958f51e8ca0650a17a49.tar.gz usbmuxd-b24f86e57498239bf38b958f51e8ca0650a17a49.tar.bz2 |
device: Add payload type 5 support to device_control_input()
Diffstat (limited to 'src')
-rw-r--r-- | src/device.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c index a6afffd..0b72c62 100644 --- a/src/device.c +++ b/src/device.c | |||
@@ -600,6 +600,13 @@ static void device_control_input(struct mux_device *dev, unsigned char *payload, | |||
600 | usbmuxd_log(LL_ERROR, "%s: Device %d: Got device error payload with empty message", __func__, dev->id); | 600 | usbmuxd_log(LL_ERROR, "%s: Device %d: Got device error payload with empty message", __func__, dev->id); |
601 | } | 601 | } |
602 | break; | 602 | break; |
603 | case 5: | ||
604 | if (payload_length > 1) { | ||
605 | usbmuxd_log(LL_WARNING, "Device %d: WARNING: %.*s", dev->id, payload_length-1, payload+1); | ||
606 | } else { | ||
607 | usbmuxd_log(LL_WARNING, "%s: Device %d: Got payload type %d with empty message", __func__, dev->id, payload[0]); | ||
608 | } | ||
609 | break; | ||
603 | case 7: | 610 | case 7: |
604 | if (payload_length > 1) { | 611 | if (payload_length > 1) { |
605 | usbmuxd_log(LL_INFO, "Device %d: %.*s", dev->id, payload_length-1, payload+1); | 612 | usbmuxd_log(LL_INFO, "Device %d: %.*s", dev->id, payload_length-1, payload+1); |