]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/zebra_fpm.c
eigrpd: eigrp usage of uint32_t to struct in_addr for router_id data
[mirror_frr.git] / zebra / zebra_fpm.c
index 1cb14abbf96e33e6b917f3b82bda55c837721cde..35a5d69ee3b53934826b7d6ae0c3bca452c91579 100644 (file)
@@ -1518,9 +1518,8 @@ static inline void zfpm_init_message_format(const char *format)
 
        if (!strcmp("netlink", format)) {
                if (!have_netlink) {
-                       flog_err(
-                               ZEBRA_ERR_NETLINK_NOT_AVAILABLE,
-                               "FPM netlink message format is not available");
+                       flog_err(EC_ZEBRA_NETLINK_NOT_AVAILABLE,
+                                "FPM netlink message format is not available");
                        return;
                }
                zfpm_g->message_format = ZFPM_MSG_FORMAT_NETLINK;
@@ -1530,7 +1529,7 @@ static inline void zfpm_init_message_format(const char *format)
        if (!strcmp("protobuf", format)) {
                if (!have_protobuf) {
                        flog_err(
-                               ZEBRA_ERR_PROTOBUF_NOT_AVAILABLE,
+                               EC_ZEBRA_PROTOBUF_NOT_AVAILABLE,
                                "FPM protobuf message format is not available");
                        return;
                }
@@ -1538,7 +1537,8 @@ static inline void zfpm_init_message_format(const char *format)
                return;
        }
 
-       zlog_warn("Unknown fpm format '%s'", format);
+       flog_warn(EC_ZEBRA_FPM_FORMAT_UNKNOWN, "Unknown fpm format '%s'",
+                 format);
 }
 
 /**