Hi Wensong,
I found a _minor_ bug in one of the alls to IP_VS_INFO.
The trailing '\n' was missing causing logs to be a
bit screwy.
--
Horms
--- ip_vs_ctl.c.orig 2003-10-29 22:07:46.000000000 +0900
+++ ip_vs_ctl.c 2003-10-29 22:05:01.000000000 +0900
@@ -1737,7 +1737,7 @@
* Check for valid protocol: TCP or UDP. Even for fwmark!=0
*/
if (urule->protocol!=IPPROTO_TCP && urule->protocol!=IPPROTO_UDP) {
- IP_VS_INFO("vs_ctl: invalid protocol: %d %d.%d.%d.%d:%d %s",
+ IP_VS_INFO("vs_ctl: invalid protocol: %d %d.%d.%d.%d:%d %s\n",
ntohs(urule->protocol), NIPQUAD(urule->vaddr),
ntohs(urule->vport), urule->sched_name);
ret = -EFAULT;
|