[INET]: compile errors when DEBUG is defined
authorStephen Hemminger <shemminger@osdl.org>
Tue, 30 Aug 2005 05:51:28 +0000 (22:51 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Aug 2005 05:51:28 +0000 (22:51 -0700)
Fix build problem found by compiling driver with DEBUG defined that used tcp.h.
Since pr_debug(arg) expands to printk("<7>" arg) the argument
needs to be string that can be concatenated.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_connection_sock.h

index 8a87a3a4f107515aa0197e891fbd61b7ef5374dc..651f824c10088e812ef1728c2d24d954a69faa48 100644 (file)
@@ -147,7 +147,7 @@ static inline void inet_csk_clear_xmit_timer(struct sock *sk, const int what)
        }
 #ifdef INET_CSK_DEBUG
        else {
-               pr_debug(inet_csk_timer_bug_msg);
+               pr_debug("%s", inet_csk_timer_bug_msg);
        }
 #endif
 }
@@ -180,7 +180,7 @@ static inline void inet_csk_reset_xmit_timer(struct sock *sk, const int what,
        }
 #ifdef INET_CSK_DEBUG
        else {
-               pr_debug(inet_csk_timer_bug_msg);
+               pr_debug("%s", inet_csk_timer_bug_msg);
        }
 #endif
 }