don't print crnl to console
authorMichael Gernoth <michael@gernoth.net>
Sat, 13 Jul 2013 09:42:43 +0000 (11:42 +0200)
committerMichael Gernoth <michael@gernoth.net>
Sat, 13 Jul 2013 09:42:43 +0000 (11:42 +0200)
hmland.c

index 3dae545..4efc8b5 100644 (file)
--- 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);
Impressum, Datenschutz