summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2020-06-08 03:10:14 +0200
committerGravatar Martin Szulecki2020-06-08 03:10:14 +0200
commitf4a4f85bc0e5a94de724fe2928cff89ecad0e97e (patch)
tree81a1fbd15a9112f35e2833bb651b387cf7bd10aa /src
parent7317958e0c8f52bca6fd4deee1045d117e1b0619 (diff)
downloadusbmuxd-f4a4f85bc0e5a94de724fe2928cff89ecad0e97e.tar.gz
usbmuxd-f4a4f85bc0e5a94de724fe2928cff89ecad0e97e.tar.bz2
Add more logging to catch more possible cases in device_control_input()
Diffstat (limited to 'src')
-rw-r--r--src/device.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c
index ec65f87..0402092 100644
--- a/src/device.c
+++ b/src/device.c
@@ -611,9 +611,12 @@ static void device_control_input(struct mux_device *dev, unsigned char *payload,
611 buf[payload_length-1] = '\0'; 611 buf[payload_length-1] = '\0';
612 usbmuxd_log(LL_INFO, "%s: %s", __func__, buf); 612 usbmuxd_log(LL_INFO, "%s: %s", __func__, buf);
613 free(buf); 613 free(buf);
614 } else {
615 usbmuxd_log(LL_WARNING, "%s: Got payload type 7 with empty message", __func__);
614 } 616 }
615 break; 617 break;
616 default: 618 default:
619 usbmuxd_log(LL_WARNING, "%s: Got unhandled payload type %d", __func__, payload[0]);
617 break; 620 break;
618 } 621 }
619 } else { 622 } else {