2004-10-26 01:13:03

by ahendry

[permalink] [raw]
Subject: [PATCH TRIVIAL 2.6] X.25 : Dont log "unknown frame type" when receiving clear confirm

No need to log this for clear confirm.

Signed-off-by: Andrew Hendry <[email protected]>

diff -up linux-2.6.8.1/net/x25/x25_dev.c.orig linux-2.6.8.1/net/x25/x25_dev.c
--- linux-2.6.8.1/net/x25/x25_dev.c.orig 2004-10-26 09:58:36.158922080 +1000
+++ linux-2.6.8.1/net/x25/x25_dev.c 2004-10-26 10:03:01.134639648 +1000
@@ -92,7 +92,12 @@ static int x25_receive_data(struct sk_bu
/*
x25_transmit_clear_request(nb, lci, 0x0D);
*/
- printk(KERN_DEBUG "x25_receive_data(): unknown frame type %2x\n",frametype);
+
+ /*
+ * Dont spam the logs for clear confirms.
+ */
+ if (frametype != X25_CLEAR_CONFIRMATION)
+ printk(KERN_DEBUG "x25_receive_data(): unknown frame type %2x\n",frametype);

return 0;
}