]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_dump.c
bgpd: changes for code maintainability
[mirror_frr.git] / bgpd / bgp_dump.c
index 720925b20fd7053f162e6ebf5628214860ebb0e9..2899b5c8c6a135ee88f3f12579fccec4163a89db 100644 (file)
@@ -122,7 +122,7 @@ static FILE *bgp_dump_open_file(struct bgp_dump *bgp_dump)
                ret = strftime(realpath, MAXPATHLEN, bgp_dump->filename, &tm);
 
        if (ret == 0) {
-               flog_warn(EC_BGP_DUMP, "bgp_dump_open_file: strftime error");
+               flog_warn(EC_BGP_DUMP, "%s: strftime error", __func__);
                return NULL;
        }
 
@@ -134,7 +134,7 @@ static FILE *bgp_dump_open_file(struct bgp_dump *bgp_dump)
        bgp_dump->fp = fopen(realpath, "w");
 
        if (bgp_dump->fp == NULL) {
-               flog_warn(EC_BGP_DUMP, "bgp_dump_open_file: %s: %s", realpath,
+               flog_warn(EC_BGP_DUMP, "%s: %s: %s", __func__, realpath,
                          strerror(errno));
                umask(oldumask);
                return NULL;