diff options
author | Nikias Bassen | 2020-08-02 01:59:47 +0200 |
---|---|---|
committer | Nikias Bassen | 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, usbmuxd_log(LL_ERROR, "%s: Device %d: Got device error payload with empty message", __func__, dev->id); } break; + case 5: + if (payload_length > 1) { + usbmuxd_log(LL_WARNING, "Device %d: WARNING: %.*s", dev->id, payload_length-1, payload+1); + } else { + usbmuxd_log(LL_WARNING, "%s: Device %d: Got payload type %d with empty message", __func__, dev->id, payload[0]); + } + break; case 7: if (payload_length > 1) { usbmuxd_log(LL_INFO, "Device %d: %.*s", dev->id, payload_length-1, payload+1); |