summaryrefslogtreecommitdiffstats
path: root/src/device.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2020-06-08 03:01:18 +0200
committerGravatar Martin Szulecki2020-06-08 03:01:18 +0200
commit7317958e0c8f52bca6fd4deee1045d117e1b0619 (patch)
tree6a4b5b7f700c781b0a12c700e1546429daf139b1 /src/device.c
parentea94e4c05360872cb9050b3f39299778d8621c20 (diff)
downloadusbmuxd-7317958e0c8f52bca6fd4deee1045d117e1b0619.tar.gz
usbmuxd-7317958e0c8f52bca6fd4deee1045d117e1b0619.tar.bz2
Improve and unify log message output for client, device and config
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c6
1 files changed, 3 insertions, 3 deletions
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__);
}
}