]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: consistent log msg format (BZ#565)
authorheasley <heas@shrubbery.net>
Tue, 12 Jul 2011 16:09:18 +0000 (20:09 +0400)
committerDenis Ovsienko <infrastation@yandex.ru>
Tue, 27 Sep 2011 17:05:30 +0000 (21:05 +0400)
bgpd/bgp_attr.c

index d43c104f9505e9b860f6b25bc84866efbbb2d46e..0af240e23a1dd49773b051dfa515e90fc8f035a8 100644 (file)
@@ -1615,7 +1615,7 @@ bgp_attr_parse (struct peer *peer, struct attr *attr, bgp_size_t size,
        {
          /* XXX warning: long int format, int arg (arg 5) */
          zlog (peer->log, LOG_WARNING, 
-               "%s error BGP attribute length %lu is smaller than min len",
+               "%s: error BGP attribute length %lu is smaller than min len",
                peer->host,
                (unsigned long) (endp - STREAM_PNT (BGP_INPUT (peer))));
 
@@ -1635,7 +1635,7 @@ bgp_attr_parse (struct peer *peer, struct attr *attr, bgp_size_t size,
           && ((endp - startp) < (BGP_ATTR_MIN_LEN + 1)))
        {
          zlog (peer->log, LOG_WARNING, 
-               "%s Extended length set, but just %lu bytes of attr header",
+               "%s: Extended length set, but just %lu bytes of attr header",
                peer->host,
                (unsigned long) (endp - STREAM_PNT (BGP_INPUT (peer))));
 
@@ -1658,7 +1658,7 @@ bgp_attr_parse (struct peer *peer, struct attr *attr, bgp_size_t size,
       if (CHECK_BITMAP (seen, type))
        {
          zlog (peer->log, LOG_WARNING,
-               "%s error BGP attribute type %d appears twice in a message",
+               "%s: error BGP attribute type %d appears twice in a message",
                peer->host, type);
 
          bgp_notify_send (peer, 
@@ -1678,7 +1678,7 @@ bgp_attr_parse (struct peer *peer, struct attr *attr, bgp_size_t size,
       if (attr_endp > endp)
        {
          zlog (peer->log, LOG_WARNING, 
-               "%s BGP type %d length %d is too large, attribute total length is %d.  attr_endp is %p.  endp is %p", peer->host, type, length, size, attr_endp, endp);
+               "%s: BGP type %d length %d is too large, attribute total length is %d.  attr_endp is %p.  endp is %p", peer->host, type, length, size, attr_endp, endp);
          bgp_notify_send (peer, 
                           BGP_NOTIFY_UPDATE_ERR, 
                           BGP_NOTIFY_UPDATE_ATTR_LENG_ERR);
@@ -1785,7 +1785,7 @@ bgp_attr_parse (struct peer *peer, struct attr *attr, bgp_size_t size,
   if (BGP_INPUT_PNT (peer) != endp)
     {
       zlog (peer->log, LOG_WARNING, 
-           "%s BGP attribute %s, length mismatch",
+           "%s: BGP attribute %s, length mismatch",
            peer->host, LOOKUP (attr_str, type));
       bgp_notify_send (peer, 
                       BGP_NOTIFY_UPDATE_ERR,