From d3ae8b50207a80c58fadfdf65966e595307a3b3b Mon Sep 17 00:00:00 2001 From: Vivek Kumar Dutta Date: Wed, 30 Apr 2025 19:11:56 +0530 Subject: [PATCH] obuspa: fix syslog format --- obuspa/Makefile | 2 +- obuspa/patches/1004-syslog-format.patch | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 obuspa/patches/1004-syslog-format.patch diff --git a/obuspa/Makefile b/obuspa/Makefile index a9d7fa795..551bf543e 100644 --- a/obuspa/Makefile +++ b/obuspa/Makefile @@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=obuspa -PKG_VERSION:=10.0.0.1 +PKG_VERSION:=10.0.0.2 LOCAL_DEV:=0 ifneq ($(LOCAL_DEV),1) diff --git a/obuspa/patches/1004-syslog-format.patch b/obuspa/patches/1004-syslog-format.patch new file mode 100644 index 000000000..9565a2fec --- /dev/null +++ b/obuspa/patches/1004-syslog-format.patch @@ -0,0 +1,12 @@ +diff --git a/src/core/usp_log.c b/src/core/usp_log.c +index 2722b8f..95b61b3 100644 +--- a/src/core/usp_log.c ++++ b/src/core/usp_log.c +@@ -115,6 +115,7 @@ int USP_LOG_SetFile(const char *file) + if ((file == NULL) || strcmp(file, "syslog")==0) + { + log_fd = NULL; ++ openlog("obuspa", LOG_PID | LOG_NDELAY, LOG_DAEMON); + return USP_ERR_OK; + } +