diff options
Diffstat (limited to 'src/device.c')
-rw-r--r-- | src/device.c | 6 |
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, | |||
598 | char* buf = malloc(payload_length); | 598 | char* buf = malloc(payload_length); |
599 | strncpy(buf, (char*)payload+1, payload_length-1); | 599 | strncpy(buf, (char*)payload+1, payload_length-1); |
600 | buf[payload_length-1] = '\0'; | 600 | buf[payload_length-1] = '\0'; |
601 | usbmuxd_log(LL_ERROR, "%s: ERROR: %s", __func__, buf); | 601 | usbmuxd_log(LL_ERROR, "%s: ERROR (on device): %s", __func__, buf); |
602 | free(buf); | 602 | free(buf); |
603 | } else { | 603 | } else { |
604 | usbmuxd_log(LL_ERROR, "%s: Error occurred, but empty error message", __func__); | 604 | usbmuxd_log(LL_ERROR, "%s: Got device error payload with empty message", __func__); |
605 | } | 605 | } |
606 | break; | 606 | break; |
607 | case 7: | 607 | case 7: |
@@ -617,7 +617,7 @@ static void device_control_input(struct mux_device *dev, unsigned char *payload, | |||
617 | break; | 617 | break; |
618 | } | 618 | } |
619 | } else { | 619 | } else { |
620 | usbmuxd_log(LL_WARNING, "%s: got a type 1 packet without payload", __func__); | 620 | usbmuxd_log(LL_WARNING, "%s: Got a type 1 packet without payload", __func__); |
621 | } | 621 | } |
622 | } | 622 | } |
623 | 623 | ||