From: Donald Sharp Date: Mon, 20 Aug 2018 13:31:00 +0000 (-0400) Subject: lib: Convert libfrr.c to use new error code system X-Git-Tag: frr-7.1-dev~371^2~34 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=0bff8eea70f2ed13013d5af9a8e21117eca24deb;p=mirror%2Ffrr.git lib: Convert libfrr.c to use new error code system Signed-off-by: Donald Sharp --- diff --git a/lib/libfrr.c b/lib/libfrr.c index 821c57f37b..18e2636560 100644 --- a/lib/libfrr.c +++ b/lib/libfrr.c @@ -517,13 +517,15 @@ static void frr_mkdir(const char *path, bool strip) if (errno == EEXIST) return; - zlog_warn("failed to mkdir \"%s\": %s", path, strerror(errno)); + flog_err(LIB_ERR_SYSTEM_CALL, "failed to mkdir \"%s\": %s", + path, strerror(errno)); return; } zprivs_get_ids(&ids); if (chown(path, ids.uid_normal, ids.gid_normal)) - zlog_warn("failed to chown \"%s\": %s", path, strerror(errno)); + flog_err(LIB_ERR_SYSTEM_CALL, "failed to chown \"%s\": %s", + path, strerror(errno)); } static struct thread_master *master;