diff options
Diffstat (limited to 'src/device.c')
| -rw-r--r-- | src/device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device.c b/src/device.c index 28c0893..356c70a 100644 --- a/src/device.c +++ b/src/device.c | |||
| @@ -463,7 +463,7 @@ static void device_version_input(struct mux_device *dev, struct version_header * | |||
| 463 | vh->major = ntohl(vh->major); | 463 | vh->major = ntohl(vh->major); |
| 464 | vh->minor = ntohl(vh->minor); | 464 | vh->minor = ntohl(vh->minor); |
| 465 | if(vh->major != 1 || vh->minor != 0) { | 465 | if(vh->major != 1 || vh->minor != 0) { |
| 466 | usbmuxd_log(LL_ERROR, "Device %d has unknown version %d.%d\n", dev->id, vh->major, vh->minor); | 466 | usbmuxd_log(LL_ERROR, "Device %d has unknown version %d.%d", dev->id, vh->major, vh->minor); |
| 467 | pthread_mutex_lock(&device_list_mutex); | 467 | pthread_mutex_lock(&device_list_mutex); |
| 468 | collection_remove(&device_list, dev); | 468 | collection_remove(&device_list, dev); |
| 469 | pthread_mutex_unlock(&device_list_mutex); | 469 | pthread_mutex_unlock(&device_list_mutex); |
| @@ -491,7 +491,7 @@ static void device_tcp_input(struct mux_device *dev, struct tcphdr *th, unsigned | |||
| 491 | dev->id, dport, sport, ntohl(th->th_seq), ntohl(th->th_ack), th->th_flags, ntohs(th->th_win) << 8, ntohs(th->th_win), payload_length); | 491 | dev->id, dport, sport, ntohl(th->th_seq), ntohl(th->th_ack), th->th_flags, ntohs(th->th_win) << 8, ntohs(th->th_win), payload_length); |
| 492 | 492 | ||
| 493 | if(dev->state != MUXDEV_ACTIVE) { | 493 | if(dev->state != MUXDEV_ACTIVE) { |
| 494 | usbmuxd_log(LL_ERROR, "Received TCP packet from device %d but the device isn't active yet, discarding\n", dev->id); | 494 | usbmuxd_log(LL_ERROR, "Received TCP packet from device %d but the device isn't active yet, discarding", dev->id); |
| 495 | return; | 495 | return; |
| 496 | } | 496 | } |
| 497 | 497 | ||
