aboutsummaryrefslogtreecommitdiffstats
path: root/net/atm/raw.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@linux-foundation.org>2007-08-28 18:22:09 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:48:27 -0400
commit522400623e240ad134cb4101b1fddc3245d2a7ed (patch)
treefb1f341426ae7cd5c977232c8084bf45819d1bea /net/atm/raw.c
parent23f1f4eff85d3d2ec9ed589e3fdcbba59eaa083e (diff)
[ATM]: Replace DPRINTK() with pr_debug().
Get rid of using DPRINTK macro in ATM and use pr_debug (in kernel.h). Using the standard macro is cleaner and forces code to check for bad arguments and formatting. Fixes from Thomas Graf. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/atm/raw.c')
-rw-r--r--net/atm/raw.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/net/atm/raw.c b/net/atm/raw.c
index 1378f61c5c31..b0a2d8cb6744 100644
--- a/net/atm/raw.c
+++ b/net/atm/raw.c
@@ -13,14 +13,6 @@
13#include "common.h" 13#include "common.h"
14#include "protocols.h" 14#include "protocols.h"
15 15
16
17#if 0
18#define DPRINTK(format,args...) printk(KERN_DEBUG format,##args)
19#else
20#define DPRINTK(format,args...)
21#endif
22
23
24/* 16/*
25 * SKB == NULL indicates that the link is being closed 17 * SKB == NULL indicates that the link is being closed
26 */ 18 */
@@ -40,8 +32,8 @@ static void atm_pop_raw(struct atm_vcc *vcc,struct sk_buff *skb)
40{ 32{
41 struct sock *sk = sk_atm(vcc); 33 struct sock *sk = sk_atm(vcc);
42 34
43 DPRINTK("APopR (%d) %d -= %d\n", vcc->vci, sk->sk_wmem_alloc, 35 pr_debug("APopR (%d) %d -= %d\n", vcc->vci,
44 skb->truesize); 36 atomic_read(&sk->sk_wmem_alloc), skb->truesize);
45 atomic_sub(skb->truesize, &sk->sk_wmem_alloc); 37 atomic_sub(skb->truesize, &sk->sk_wmem_alloc);
46 dev_kfree_skb_any(skb); 38 dev_kfree_skb_any(skb);
47 sk->sk_write_space(sk); 39 sk->sk_write_space(sk);