diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-06-19 18:29:05 +0000 | 
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-08-14 20:02:05 +0000 | 
| commit | 43e52561b476e4810e0a1280769e800e2d619621 (patch) | |
| tree | 9d8639c395d92ebcd38261371ec2103f36ce42b5 /zebra/table_manager.c | |
| parent | b72002107f4fdaf1b5044234426ecea88b1eaaaa (diff) | |
zebra, lib: error references for zebra
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'zebra/table_manager.c')
| -rw-r--r-- | zebra/table_manager.c | 12 | 
1 files changed, 8 insertions, 4 deletions
diff --git a/zebra/table_manager.c b/zebra/table_manager.c index 5bcc2c40d6..ecff9bd85d 100644 --- a/zebra/table_manager.c +++ b/zebra/table_manager.c @@ -35,6 +35,7 @@  #include "zebra/zebra_vrf.h"  #include "zebra/label_manager.h" /* for NO_PROTO */  #include "zebra/table_manager.h" +#include "zebra/zebra_errors.h"  /* routing table identifiers   * @@ -146,8 +147,9 @@ struct table_manager_chunk *assign_table_chunk(uint8_t proto, uint16_t instance,  #endif /* SUNOS_5 */  	tmc->start = start;  	if (RT_TABLE_ID_UNRESERVED_MAX - size  + 1 < start) { -		zlog_err("Reached max table id. Start/Size %u/%u", -			 start, size); +		zlog_ferr(ZEBRA_ERR_TM_EXHAUSTED_IDS, +			  "Reached max table id. Start/Size %u/%u", start, +			  size);  		XFREE(MTYPE_TM_CHUNK, tmc);  		return NULL;  	} @@ -184,7 +186,8 @@ int release_table_chunk(uint8_t proto, uint16_t instance, uint32_t start,  		if (tmc->end != end)  			continue;  		if (tmc->proto != proto || tmc->instance != instance) { -			zlog_err("%s: Daemon mismatch!!", __func__); +			zlog_ferr(ZEBRA_ERR_TM_DAEMON_MISMATCH, +				  "%s: Daemon mismatch!!", __func__);  			continue;  		}  		tmc->proto = NO_PROTO; @@ -193,7 +196,8 @@ int release_table_chunk(uint8_t proto, uint16_t instance, uint32_t start,  		break;  	}  	if (ret != 0) -		zlog_err("%s: Table chunk not released!!", __func__); +		zlog_ferr(ZEBRA_ERR_TM_UNRELEASED_CHUNK, +			  "%s: Table chunk not released!!", __func__);  	return ret;  }  | 
