Explorar el Código

[INET]: compile errors when DEBUG is defined

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>
Stephen Hemminger hace 19 años
padre
commit
d8971fcb70
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      include/net/inet_connection_sock.h

+ 2 - 2
include/net/inet_connection_sock.h

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