]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: Convert libfrr.c to use new error code system
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 20 Aug 2018 13:31:00 +0000 (09:31 -0400)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 6 Sep 2018 20:50:58 +0000 (20:50 +0000)
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/libfrr.c

index 821c57f37b2d1a9c4e7c09ae2d2bc23dd53d082c..18e2636560bb8fd7a73f590ed7232fc3d6359f3b 100644 (file)
@@ -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;