summaryrefslogtreecommitdiffstats
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
parent7317958e0c8f52bca6fd4deee1045d117e1b0619 (diff)
downloadusbmuxd-f4a4f85bc0e5a94de724fe2928cff89ecad0e97e.tar.gz
usbmuxd-f4a4f85bc0e5a94de724fe2928cff89ecad0e97e.tar.bz2
Add more logging to catch more possible cases in device_control_input()
-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,
buf[payload_length-1] = '\0';
usbmuxd_log(LL_INFO, "%s: %s", __func__, buf);
free(buf);
+ } else {
+ usbmuxd_log(LL_WARNING, "%s: Got payload type 7 with empty message", __func__);
}
break;
default:
+ usbmuxd_log(LL_WARNING, "%s: Got unhandled payload type %d", __func__, payload[0]);
break;
}
} else {