diff options
| author | Patrick McHardy <kaber@trash.net> | 2010-04-20 16:02:01 +0200 | 
|---|---|---|
| committer | Patrick McHardy <kaber@trash.net> | 2010-04-20 16:02:01 +0200 | 
| commit | 62910554656cdcd6b6f84a5154c4155aae4ca231 (patch) | |
| tree | dcf14004f6fd2ef7154362ff948bfeba0f3ea92d /net/core/netpoll.c | |
| parent | 22265a5c3c103cf8c50be62e6c90d045eb649e6d (diff) | |
| parent | ab9304717f7624c41927f442e6b6d418b2d8b3e4 (diff) | |
| download | olio-linux-3.10-62910554656cdcd6b6f84a5154c4155aae4ca231.tar.xz olio-linux-3.10-62910554656cdcd6b6f84a5154c4155aae4ca231.zip  | |
Merge branch 'master' of /repos/git/net-next-2.6
Conflicts:
	Documentation/feature-removal-schedule.txt
	net/ipv6/netfilter/ip6t_REJECT.c
	net/netfilter/xt_limit.c
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net/core/netpoll.c')
| -rw-r--r-- | net/core/netpoll.c | 8 | 
1 files changed, 6 insertions, 2 deletions
diff --git a/net/core/netpoll.c b/net/core/netpoll.c index d4ec38fa64e..a58f59b9759 100644 --- a/net/core/netpoll.c +++ b/net/core/netpoll.c @@ -22,6 +22,7 @@  #include <linux/delay.h>  #include <linux/rcupdate.h>  #include <linux/workqueue.h> +#include <linux/slab.h>  #include <net/tcp.h>  #include <net/udp.h>  #include <asm/unaligned.h> @@ -614,7 +615,7 @@ void netpoll_print_options(struct netpoll *np)  			 np->name, np->local_port);  	printk(KERN_INFO "%s: local IP %pI4\n",  			 np->name, &np->local_ip); -	printk(KERN_INFO "%s: interface %s\n", +	printk(KERN_INFO "%s: interface '%s'\n",  			 np->name, np->dev_name);  	printk(KERN_INFO "%s: remote port %d\n",  			 np->name, np->remote_port); @@ -661,6 +662,9 @@ int netpoll_parse_options(struct netpoll *np, char *opt)  		if ((delim = strchr(cur, '@')) == NULL)  			goto parse_failed;  		*delim = 0; +		if (*cur == ' ' || *cur == '\t') +			printk(KERN_INFO "%s: warning: whitespace" +					"is not allowed\n", np->name);  		np->remote_port = simple_strtol(cur, NULL, 10);  		cur = delim;  	} @@ -708,7 +712,7 @@ int netpoll_parse_options(struct netpoll *np, char *opt)  	return 0;   parse_failed: -	printk(KERN_INFO "%s: couldn't parse config at %s!\n", +	printk(KERN_INFO "%s: couldn't parse config at '%s'!\n",  	       np->name, cur);  	return -1;  }  |