Skip to content

Commit

Permalink
[INET]: compile errors when DEBUG is defined
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Stephen Hemminger authored and davem330 committed Aug 30, 2005
1 parent 1fdab81 commit d8971fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/net/inet_connection_sock.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit d8971fc

Please sign in to comment.