Commit c62a6257 authored by Alessandro Rubini's avatar Alessandro Rubini Committed by Adam Wujek

fsm.c: don't report error frames as good ones

Avoid this for dropped frames:

diag-frames-1-wr1: RECV -2 bytes at        88.000000112 (type 8, follow_up)
diag-frames-1-wr1: RECV -2 bytes at        88.000000112 (type 8, follow_up)
diag-frames-1-wr1: RECV -2 bytes at    109520.000000088 (type 8, follow_up)
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 2b4d8424
......@@ -200,7 +200,7 @@ int pp_state_machine(struct pp_instance *ppi, uint8_t *packet, int plen)
int state, err = 0;
int msgtype;
if (plen) {
if (plen > 0) {
msgtype = packet[0] & 0xf;
pp_diag(ppi, frames, 1,
"RECV %02d bytes at %9d.%09d (type %x, %s)\n", plen,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment