From 7317958e0c8f52bca6fd4deee1045d117e1b0619 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Mon, 8 Jun 2020 03:01:18 +0200 Subject: Improve and unify log message output for client, device and config --- src/device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/device.c') diff --git a/src/device.c b/src/device.c index 64e4e8d..ec65f87 100644 --- a/src/device.c +++ b/src/device.c @@ -598,10 +598,10 @@ static void device_control_input(struct mux_device *dev, unsigned char *payload, char* buf = malloc(payload_length); strncpy(buf, (char*)payload+1, payload_length-1); buf[payload_length-1] = '\0'; - usbmuxd_log(LL_ERROR, "%s: ERROR: %s", __func__, buf); + usbmuxd_log(LL_ERROR, "%s: ERROR (on device): %s", __func__, buf); free(buf); } else { - usbmuxd_log(LL_ERROR, "%s: Error occurred, but empty error message", __func__); + usbmuxd_log(LL_ERROR, "%s: Got device error payload with empty message", __func__); } break; case 7: @@ -617,7 +617,7 @@ static void device_control_input(struct mux_device *dev, unsigned char *payload, break; } } else { - usbmuxd_log(LL_WARNING, "%s: got a type 1 packet without payload", __func__); + usbmuxd_log(LL_WARNING, "%s: Got a type 1 packet without payload", __func__); } } -- cgit v1.1-32-gdbae