summaryrefslogtreecommitdiff
path: root/babeld/babeld.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2018-09-13 19:01:19 +0000
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-09-13 19:01:19 +0000
commit5b003f31fdd6171c4b65546490221f63b2114c4d (patch)
tree2ca865f54c8f00a25e3c1553893bded4933bcc0f /babeld/babeld.c
parent2b84a521e7140545f11c656dd75dab7a3b296b85 (diff)
babeld: BABEL_[ERR|WARN] -> EC_BABEL
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'babeld/babeld.c')
-rw-r--r--babeld/babeld.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/babeld/babeld.c b/babeld/babeld.c
index 54692cdf2e..18e5b479bc 100644
--- a/babeld/babeld.c
+++ b/babeld/babeld.c
@@ -255,12 +255,12 @@ babel_get_myid(void)
return;
}
- flog_err(BABEL_ERR_CONFIG,
+ flog_err(EC_BABEL_CONFIG,
"Warning: couldn't find router id -- using random value.");
rc = read_random_bytes(myid, 8);
if(rc < 0) {
- flog_err(BABEL_ERR_CONFIG, "read(random): %s (cannot assign an ID)",
+ flog_err(EC_BABEL_CONFIG, "read(random): %s (cannot assign an ID)",
safe_strerror(errno));
exit(1);
}
@@ -519,7 +519,7 @@ resize_receive_buffer(int size)
if(receive_buffer == NULL) {
receive_buffer = malloc(size);
if(receive_buffer == NULL) {
- flog_err(BABEL_ERR_MEMORY, "malloc(receive_buffer): %s",
+ flog_err(EC_BABEL_MEMORY, "malloc(receive_buffer): %s",
safe_strerror(errno));
return -1;
}
@@ -528,7 +528,7 @@ resize_receive_buffer(int size)
unsigned char *new;
new = realloc(receive_buffer, size);
if(new == NULL) {
- flog_err(BABEL_ERR_MEMORY, "realloc(receive_buffer): %s",
+ flog_err(EC_BABEL_MEMORY, "realloc(receive_buffer): %s",
safe_strerror(errno));
return -1;
}