Minor tweaks based on maniacbug commits.
This commit is contained in:
parent
1c53807727
commit
93097dcc0a
|
@ -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 */
|
/* Workaround for absence of "%.*s" format in avr-libc */
|
||||||
#if defined (__AVR__)
|
#if defined (__AVR__)
|
||||||
printf("%s%s\r\n", text1, text2);
|
printf("%s %s\r\n", text1, text2);
|
||||||
#else
|
#else
|
||||||
printf("%.*s%.*s\r\n", len1, text1, len2, text2);
|
printf("%.*s%.*s\r\n", len1, text1, len2, text2);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -173,9 +173,9 @@ serial_to_tun(FILE *inslip, int outfd)
|
||||||
|
|
||||||
read_more:
|
read_more:
|
||||||
if(inbufptr >= sizeof(uip.inbuf)) {
|
if(inbufptr >= sizeof(uip.inbuf)) {
|
||||||
inbufptr = 0;
|
|
||||||
if(timestamp) stamptime();
|
if(timestamp) stamptime();
|
||||||
fprintf(stderr, "*** dropping large %d byte packet\n",inbufptr);
|
fprintf(stderr, "*** dropping large %d byte packet\n",inbufptr);
|
||||||
|
inbufptr = 0;
|
||||||
}
|
}
|
||||||
ret = fread(&c, 1, 1, inslip);
|
ret = fread(&c, 1, 1, inslip);
|
||||||
#ifdef linux
|
#ifdef linux
|
||||||
|
|
Loading…
Reference in a new issue