From: Michael Gernoth Date: Sat, 13 Jul 2013 09:42:43 +0000 (+0200) Subject: don't print crnl to console X-Git-Tag: v0.100~66 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/hmcfgusb/commitdiff_plain/11806002ec2d8328b2b7395092cf0990869aecfc don't print crnl to console --- diff --git a/hmland.c b/hmland.c index 3dae545..4efc8b5 100644 --- a/hmland.c +++ b/hmland.c @@ -243,8 +243,9 @@ static int hmlan_format_out(uint8_t *buf, int buf_len, void *data) int i; printf("LAN < "); - for (i = 0; i < outpos-out; i++) + for (i = 0; i < outpos-out-2; i++) printf("%c", out[i]); + printf("\n"); } w = write(fd, out, outpos-out);