diff options
| author | 2014-01-09 15:27:00 +0100 | |
|---|---|---|
| committer | 2014-01-09 15:27:00 +0100 | |
| commit | 549da0b893d1d85b5a553a92aef8a4fecb4a602f (patch) | |
| tree | 1378e34e4fdae4ff97cf994223a83144dfe9b416 /src/device.c | |
| parent | 96281bed0b27c8b37bbeccc8171ee5422e8306e1 (diff) | |
| download | usbmuxd-549da0b893d1d85b5a553a92aef8a4fecb4a602f.tar.gz usbmuxd-549da0b893d1d85b5a553a92aef8a4fecb4a602f.tar.bz2 | |
removed trailing \n from usbmuxd_log() messages
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 | ||
