From 2cd0e7d72a76ba27a18315b9ae67e6ed6d2c464a Mon Sep 17 00:00:00 2001
From: Bart Van Assche <bvanassche@acm.org>
Date: Mon, 9 Aug 2021 13:38:36 -0700
Subject: [PATCH] IF-MIB: Add a trailing newline to an error message

Fixes: 8bb544fbd2d6 ("Linux: IF-MIB: Fix a memory leak")
---
 agent/mibgroup/if-mib/data_access/interface_linux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/agent/mibgroup/if-mib/data_access/interface_linux.c b/agent/mibgroup/if-mib/data_access/interface_linux.c
index e56cadf46..5322ee937 100644
--- a/agent/mibgroup/if-mib/data_access/interface_linux.c
+++ b/agent/mibgroup/if-mib/data_access/interface_linux.c
@@ -927,7 +927,7 @@ netsnmp_arch_interface_container_load(netsnmp_container* container,
             netsnmp_interface_entry *existing =
                 CONTAINER_FIND(container, entry);
             NETSNMP_LOGONCE((LOG_WARNING,
-                             "Encountered interface with index %" NETSNMP_PRIz "u twice: %s <> %s",
+                             "Encountered interface with index %" NETSNMP_PRIz "u twice: %s <> %s\n",
                              entry->index, existing ? existing->name : "(?)",
                              entry->name));
             netsnmp_access_interface_entry_free(entry);
-- 
2.33.0

