diff options
| -rw-r--r-- | drivers/net/pppol2tp.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/drivers/net/pppol2tp.c b/drivers/net/pppol2tp.c index 244d7830c92a..79359919335b 100644 --- a/drivers/net/pppol2tp.c +++ b/drivers/net/pppol2tp.c | |||
| @@ -1621,9 +1621,16 @@ out_no_ppp: | |||
| 1621 | end: | 1621 | end: |
| 1622 | release_sock(sk); | 1622 | release_sock(sk); |
| 1623 | 1623 | ||
| 1624 | if (error != 0) | 1624 | if (error != 0) { |
| 1625 | PRINTK(session ? session->debug : -1, PPPOL2TP_MSG_CONTROL, KERN_WARNING, | 1625 | if (session) |
| 1626 | "%s: connect failed: %d\n", session->name, error); | 1626 | PRINTK(session->debug, |
| 1627 | PPPOL2TP_MSG_CONTROL, KERN_WARNING, | ||
| 1628 | "%s: connect failed: %d\n", | ||
| 1629 | session->name, error); | ||
| 1630 | else | ||
| 1631 | PRINTK(-1, PPPOL2TP_MSG_CONTROL, KERN_WARNING, | ||
| 1632 | "connect failed: %d\n", error); | ||
| 1633 | } | ||
| 1627 | 1634 | ||
| 1628 | return error; | 1635 | return error; |
| 1629 | } | 1636 | } |
