diff mbox series

[2/2] log: Use l_basename instead of basename

Message ID 20240528185354.224680-2-denkenz@gmail.com (mailing list archive)
State Superseded
Commit 47165d458c322dd09f1f42a8de20e95d6cad4dcf
Headers show
Series [1/2] build: link dundee with ell | expand

Commit Message

Denis Kenzior May 28, 2024, 6:53 p.m. UTC
---
 src/log.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/src/log.c b/src/log.c
index fdfad362cfd1..4348f1be6191 100644
--- a/src/log.c
+++ b/src/log.c
@@ -28,13 +28,14 @@ 
 #include <unistd.h>
 #include <stdarg.h>
 #include <stdlib.h>
-#include <string.h>
 #include <syslog.h>
 #ifdef HAVE_BACKTRACE
 #include <execinfo.h>
 #endif
 #include <dlfcn.h>
 
+#include <ell/ell.h>
+
 #include "ofono.h"
 
 static const char *program_exec;
@@ -309,7 +310,7 @@  int __ofono_log_init(const char *program, const char *debug,
 	signal_setup(signal_handler);
 #endif
 
-	openlog(basename(program), option, LOG_DAEMON);
+	openlog(l_basename(program), option, LOG_DAEMON);
 
 	syslog(LOG_INFO, "oFono version %s", VERSION);