Whamcloud - gitweb
LU-15149 lnet: Missing newline in lnet_add_route 40/45340/2
authorChris Horn <chris.horn@hpe.com>
Fri, 22 Oct 2021 01:07:58 +0000 (01:07 +0000)
committerOleg Drokin <green@whamcloud.com>
Wed, 3 Nov 2021 02:39:04 +0000 (02:39 +0000)
CWARN string is missing a newline character.

Test-Parameters: trivial
Fixes: 3f2844dc93 ("LU-14945 lnet: don't use hops to determine the route state")
Signed-off-by: Chris Horn <chris.horn@hpe.com>
Change-Id: I06370c36e9d88b7e02e000bfb573297ff281aef1
Reviewed-on: https://review.whamcloud.com/45340
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/router.c

index d7016a1..5929b41 100644 (file)
@@ -779,8 +779,7 @@ lnet_add_route(__u32 net, __u32 hops, struct lnet_nid *gateway,
                gw->lp_health_sensitivity = sensitivity;
                lnet_add_route_to_rnet(rnet2, route);
                if (lnet_peer_discovery_disabled)
                gw->lp_health_sensitivity = sensitivity;
                lnet_add_route_to_rnet(rnet2, route);
                if (lnet_peer_discovery_disabled)
-                       CWARN("Consider turning discovery on to enable full "
-                             "Multi-Rail routing functionality\n");
+                       CWARN("Consider turning discovery on to enable full Multi-Rail routing functionality\n");
        }
 
        /*
        }
 
        /*
@@ -795,7 +794,7 @@ lnet_add_route(__u32 net, __u32 hops, struct lnet_nid *gateway,
         * if it is missing a NI on the remote network due to misconfiguration.
         */
        if (avoid_asym_router_failure && hops == LNET_UNDEFINED_HOPS)
         * if it is missing a NI on the remote network due to misconfiguration.
         */
        if (avoid_asym_router_failure && hops == LNET_UNDEFINED_HOPS)
-               CWARN("Use hops = 1 for a single-hop route when avoid_asym_router_failure feature is enabled");
+               CWARN("Use hops = 1 for a single-hop route when avoid_asym_router_failure feature is enabled\n");
 
        rc = 0;
 
 
        rc = 0;