From: Andrew Hendry <ahendry@tusc.com.au>
To: linux-x25@vger.kernel.org, eis@baty.hanse.de
Cc: trivial@rustcorp.com.au, linux-kernel@vger.kernel.org
Subject: [PATCH TRIVIAL 2.6] X.25 : Dont log "unknown frame type" when receiving clear confirm
Date: Tue, 26 Oct 2004 10:13:39 +1000 [thread overview]
Message-ID: <1098749619.3099.194.camel@localhost.localdomain> (raw)
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;
}
reply other threads:[~2004-10-26 0:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1098749619.3099.194.camel@localhost.localdomain \
--to=ahendry@tusc.com.au \
--cc=eis@baty.hanse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-x25@vger.kernel.org \
--cc=trivial@rustcorp.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox