Ignore:
Timestamp:
03/22/12 02:00:38 (14 months ago)
Author:
BrainSlayer
Message:

update quagga

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/quagga/lib/log.c

    r18031 r18797  
    11/* 
    2  * $Id$ 
    3  * 
    42 * Logging of zebra 
    53 * Copyright (C) 1997, 1998, 1999 Kunihiro Ishiguro 
     
    781779 */ 
    782780const char * 
    783 mes_lookup (const struct message *meslist, int max, int index, const char *none) 
     781mes_lookup (const struct message *meslist, int max, int index, 
     782  const char *none, const char *mesname) 
    784783{ 
    785784  int pos = index - meslist[0].key; 
     
    804803            const char *str = (meslist->str ? meslist->str : none); 
    805804             
    806             zlog_debug ("message index %d [%s] found in position %d (max is %d)", 
    807                       index, str, i, max); 
     805            zlog_debug ("message index %d [%s] found in %s at position %d (max is %d)", 
     806                      index, str, mesname, i, max); 
    808807            return str; 
    809808          } 
    810809      } 
    811810  } 
    812   zlog_err("message index %d not found (max is %d)", index, max); 
     811  zlog_err("message index %d not found in %s (max is %d)", index, mesname, max); 
    813812  assert (none); 
    814813  return none; 
     
    843842  DESC_ENTRY    (ZEBRA_ROUTE_BGP,       "bgp",          'B' ), 
    844843  DESC_ENTRY    (ZEBRA_ROUTE_HSLS,      "hsls",         'H' ), 
    845   DESC_ENTRY    (ZEBRA_ROUTE_OLSR,      "olsr",         'o' ), 
    846   DESC_ENTRY    (ZEBRA_ROUTE_BATMAN,    "batman",       'b' ), 
    847844}; 
    848845#undef DESC_ENTRY 
Note: See TracChangeset for help on using the changeset viewer.