From bb81b41cb6b6ad15d48e7873774dd1eb0d433dd2 Mon Sep 17 00:00:00 2001 From: Simon Arlott Date: Sun, 24 Dec 2006 13:32:21 +0000 Subject: Disable annoying netpoll debug messages. --- net/core/netpoll.c | 21 ++++++++++++--------- 1 files changed, 12 insertions(+), 9 deletions(-) diff --git a/net/core/netpoll.c b/net/core/netpoll.c index 823215d..d55c5ef 100644 --- a/net/core/netpoll.c +++ b/net/core/netpoll.c @@ -517,17 +517,19 @@ int netpoll_parse_options(struct netpoll *np, char *opt) cur = delim; } cur++; +#if 0 printk(KERN_INFO "%s: local port %d\n", np->name, np->local_port); - +#endif if (*cur != '/') { if ((delim = strchr(cur, '/')) == NULL) goto parse_failed; *delim = 0; np->local_ip = ntohl(in_aton(cur)); cur = delim; - +#if 0 printk(KERN_INFO "%s: local IP %d.%d.%d.%d\n", np->name, HIPQUAD(np->local_ip)); +#endif } cur++; @@ -540,9 +542,9 @@ int netpoll_parse_options(struct netpoll *np, char *opt) cur = delim; } cur++; - +#if 0 printk(KERN_INFO "%s: interface %s\n", np->name, np->dev_name); - +#endif if (*cur != '@') { /* dst port */ if ((delim = strchr(cur, '@')) == NULL) @@ -552,18 +554,19 @@ int netpoll_parse_options(struct netpoll *np, char *opt) cur = delim; } cur++; +#if 0 printk(KERN_INFO "%s: remote port %d\n", np->name, np->remote_port); - +#endif /* dst ip */ if ((delim = strchr(cur, '/')) == NULL) goto parse_failed; *delim = 0; np->remote_ip = ntohl(in_aton(cur)); cur = delim + 1; - +#if 0 printk(KERN_INFO "%s: remote IP %d.%d.%d.%d\n", np->name, HIPQUAD(np->remote_ip)); - +#endif if (*cur != 0) { /* MAC address */ if ((delim = strchr(cur, ':')) == NULL) @@ -593,7 +596,7 @@ int netpoll_parse_options(struct netpoll *np, char *opt) cur = delim + 1; np->remote_mac[5] = simple_strtol(cur, NULL, 16); } - +#if 0 printk(KERN_INFO "%s: remote ethernet address " "%02x:%02x:%02x:%02x:%02x:%02x\n", np->name, @@ -603,7 +606,7 @@ int netpoll_parse_options(struct netpoll *np, char *opt) np->remote_mac[3], np->remote_mac[4], np->remote_mac[5]); - +#endif return 0; parse_failed: -- 1.5.0.1