Changeset 18797 for src/router/quagga/lib/log.c
- Timestamp:
- 03/22/12 02:00:38 (14 months ago)
- File:
-
- 1 edited
-
src/router/quagga/lib/log.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/router/quagga/lib/log.c
r18031 r18797 1 1 /* 2 * $Id$3 *4 2 * Logging of zebra 5 3 * Copyright (C) 1997, 1998, 1999 Kunihiro Ishiguro … … 781 779 */ 782 780 const char * 783 mes_lookup (const struct message *meslist, int max, int index, const char *none) 781 mes_lookup (const struct message *meslist, int max, int index, 782 const char *none, const char *mesname) 784 783 { 785 784 int pos = index - meslist[0].key; … … 804 803 const char *str = (meslist->str ? meslist->str : none); 805 804 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); 808 807 return str; 809 808 } 810 809 } 811 810 } 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); 813 812 assert (none); 814 813 return none; … … 843 842 DESC_ENTRY (ZEBRA_ROUTE_BGP, "bgp", 'B' ), 844 843 DESC_ENTRY (ZEBRA_ROUTE_HSLS, "hsls", 'H' ), 845 DESC_ENTRY (ZEBRA_ROUTE_OLSR, "olsr", 'o' ),846 DESC_ENTRY (ZEBRA_ROUTE_BATMAN, "batman", 'b' ),847 844 }; 848 845 #undef DESC_ENTRY
Note: See TracChangeset
for help on using the changeset viewer.
