]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/atm/raw.c
fat: i_blocks warning fix
[linux-2.6-omap-h63xx.git] / net / atm / raw.c
index 1378f61c5c3178876aeffb0438621efdb91394c7..b0a2d8cb67447d70bed4b87b89b657c1c55d8f2c 100644 (file)
 #include "common.h"
 #include "protocols.h"
 
-
-#if 0
-#define DPRINTK(format,args...) printk(KERN_DEBUG format,##args)
-#else
-#define DPRINTK(format,args...)
-#endif
-
-
 /*
  * SKB == NULL indicates that the link is being closed
  */
@@ -40,8 +32,8 @@ static void atm_pop_raw(struct atm_vcc *vcc,struct sk_buff *skb)
 {
        struct sock *sk = sk_atm(vcc);
 
-       DPRINTK("APopR (%d) %d -= %d\n", vcc->vci, sk->sk_wmem_alloc,
-               skb->truesize);
+       pr_debug("APopR (%d) %d -= %d\n", vcc->vci,
+               atomic_read(&sk->sk_wmem_alloc), skb->truesize);
        atomic_sub(skb->truesize, &sk->sk_wmem_alloc);
        dev_kfree_skb_any(skb);
        sk->sk_write_space(sk);