LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[Patch] Cosmetic IP_VS_INFO fix

To: LVS Users <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: [Patch] Cosmetic IP_VS_INFO fix
From: Horms <horms@xxxxxxxxxxxx>
Date: Wed, 29 Oct 2003 22:09:33 +0900
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;
<Prev in Thread] Current Thread [Next in Thread>
  • [Patch] Cosmetic IP_VS_INFO fix, Horms <=