public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Replaces dprintk with pr_debug
@ 2011-03-03 16:26 Maksym Planeta
  2011-03-09 16:37 ` mcsim.planeta
  0 siblings, 1 reply; 2+ messages in thread
From: Maksym Planeta @ 2011-03-03 16:26 UTC (permalink / raw)
  To: kernel-janitors

Replaces dprintk with pr_debug and corrects some of checkpatch.pl
 warnings

Signed-off-by: Maksym Planeta <mcsim.planeta@gmail.com>
---
 net/llc/llc_input.c |   14 ++++----------
 1 files changed, 4 insertions(+), 10 deletions(-)

diff --git a/net/llc/llc_input.c b/net/llc/llc_input.c
index f996874..8915352 100644
--- a/net/llc/llc_input.c
+++ b/net/llc/llc_input.c
@@ -2,7 +2,7 @@
  * llc_input.c - Minimal input path for LLC
  *
  * Copyright (c) 1997 by Procom Technology, Inc.
- * 		 2001-2003 by Arnaldo Carvalho de Melo <acme@conectiva.com.br>
+ *		2001-2003 by Arnaldo Carvalho de Melo <acme@conectiva.com.br>
  *
  * This program can be redistributed or modified under the terms of the
  * GNU General Public License as published by the Free Software Foundation.
@@ -18,12 +18,6 @@
 #include <net/llc_pdu.h>
 #include <net/llc_sap.h>
 
-#if 0
-#define dprintk(args...) printk(KERN_DEBUG args)
-#else
-#define dprintk(args...)
-#endif
-
 /*
  * Packet handler for the station, registerable because in the minimal
  * LLC core that is taking shape only the very minimal subset of LLC that
@@ -62,7 +56,7 @@ void llc_set_station_handler(void (*handler)(struct sk_buff *skb))
  *
  *	This function returns which LLC component must handle this PDU.
  */
-static __inline__ int llc_pdu_type(struct sk_buff *skb)
+static inline int llc_pdu_type(struct sk_buff *skb)
 {
 	int type = LLC_DEST_CONN; /* I-PDU or S-PDU type */
 	struct llc_pdu_sn *pdu = llc_pdu_sn_hdr(skb);
@@ -159,7 +153,7 @@ int llc_rcv(struct sk_buff *skb, struct net_device *dev,
 	 * receives, do not try to analyse it.
 	 */
 	if (unlikely(skb->pkt_type = PACKET_OTHERHOST)) {
-		dprintk("%s: PACKET_OTHERHOST\n", __func__);
+		pr_debug("%s: PACKET_OTHERHOST\n", __func__);
 		goto drop;
 	}
 	skb = skb_share_check(skb, GFP_ATOMIC);
@@ -172,7 +166,7 @@ int llc_rcv(struct sk_buff *skb, struct net_device *dev,
 	       goto handle_station;
 	sap = llc_sap_find(pdu->dsap);
 	if (unlikely(!sap)) {/* unknown SAP */
-		dprintk("%s: llc_sap_find(%02X) failed!\n", __func__,
+		pr_debug("%s: llc_sap_find(%02X) failed!\n", __func__,
 			pdu->dsap);
 		goto drop;
 	}
-- 
1.7.2.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-09 16:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-03 16:26 [PATCH] Replaces dprintk with pr_debug Maksym Planeta
2011-03-09 16:37 ` mcsim.planeta

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