]> git.puffer.fish Git - mirror/frr.git/commitdiff
nhrpd: Fixup tab usage and sockunion2str usage 8411/head
authorDonald Sharp <sharpd@nvidia.com>
Tue, 6 Apr 2021 14:09:48 +0000 (10:09 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Tue, 6 Apr 2021 14:09:48 +0000 (10:09 -0400)
For some reason the usage of tabs in a string snuck in as well
as using a sockunion2str instead of %pSU.  Fix.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
nhrpd/nhrp_nhs.c
nhrpd/nhrp_peer.c

index b78bf92784765c631cfe9c33db9e64d0e22ba71e..9dfaf073d85cf2c30a183d9732a834948f4201e1 100644 (file)
@@ -34,7 +34,6 @@ static void nhrp_reg_reply(struct nhrp_reqid *reqid, void *arg)
        struct zbuf extpl;
        union sockunion cie_nbma, cie_nbma_nhs, cie_proto, cie_proto_nhs,
                *proto;
-       char buf[64];
        int ok = 0, holdtime;
        unsigned short mtu = 0;
 
@@ -78,10 +77,8 @@ static void nhrp_reg_reply(struct nhrp_reqid *reqid, void *arg)
                                             &cie_proto)) {
                                nifp->nat_nbma = cie_nbma;
                                debugf(NHRP_DEBUG_IF,
-                                      "%s: NAT detected, real NBMA address: %s",
-                                      ifp->name,
-                                      sockunion2str(&nifp->nbma, buf,
-                                                    sizeof(buf)));
+                                      "%s: NAT detected, real NBMA address: %pSU",
+                                      ifp->name, &nifp->nbma);
                        }
                        break;
                case NHRP_EXTENSION_RESPONDER_ADDRESS:
index 199f3332d238bfb52eb55dd34a111472b2d813e2..c1f615d0a9b5709278111dbfb4e99c2c85673e68 100644 (file)
@@ -422,7 +422,7 @@ static void nhrp_process_nat_extension(struct nhrp_packet_parser *pp,
 
                                        if (!sockunion_cmp(proto, &cie_proto)) {
                                                debugf(NHRP_DEBUG_COMMON,
-                                                      "\tcie_nbma for proto %pSU is %pSU",
+                                                      "cie_nbma for proto %pSU is %pSU",
                                                       proto, cie_nbma);
                                                break;
                                        }