Linux X.25 subsystem development
 help / color / mirror / Atom feed
* [PATCH TRIVIAL 2.6] X.25 : Dont log "unknown frame type" when receiving clear confirm
@ 2004-10-26  0:13 Andrew Hendry
  0 siblings, 0 replies; only message in thread
From: Andrew Hendry @ 2004-10-26  0:13 UTC (permalink / raw)
  To: linux-x25, eis; +Cc: trivial, linux-kernel

No need to log this for clear confirm.

Signed-off-by: Andrew Hendry <ahendry@tusc.com.au>

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;
 }



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-10-26  0:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-26  0:13 [PATCH TRIVIAL 2.6] X.25 : Dont log "unknown frame type" when receiving clear confirm Andrew Hendry

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox