From 93097dcc0a62b9186f79944d7e92e3ee4de522f6 Mon Sep 17 00:00:00 2001 From: David Kopf Date: Tue, 16 Aug 2011 14:25:16 -0400 Subject: [PATCH] Minor tweaks based on maniacbug commits. --- apps/serial-shell/serial-shell.c | 2 +- tools/tunslip6.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/serial-shell/serial-shell.c b/apps/serial-shell/serial-shell.c index a59c0009b..c605de4ec 100644 --- a/apps/serial-shell/serial-shell.c +++ b/apps/serial-shell/serial-shell.c @@ -70,7 +70,7 @@ shell_default_output(const char *text1, int len1, const char *text2, int len2) /* Workaround for absence of "%.*s" format in avr-libc */ #if defined (__AVR__) - printf("%s%s\r\n", text1, text2); + printf("%s %s\r\n", text1, text2); #else printf("%.*s%.*s\r\n", len1, text1, len2, text2); #endif diff --git a/tools/tunslip6.c b/tools/tunslip6.c index 0dd6c37d0..4192dae4f 100644 --- a/tools/tunslip6.c +++ b/tools/tunslip6.c @@ -173,9 +173,9 @@ serial_to_tun(FILE *inslip, int outfd) read_more: if(inbufptr >= sizeof(uip.inbuf)) { - inbufptr = 0; if(timestamp) stamptime(); fprintf(stderr, "*** dropping large %d byte packet\n",inbufptr); + inbufptr = 0; } ret = fread(&c, 1, 1, inslip); #ifdef linux