secDetector/Backport-fix-printf-error-in-main.cpp.patch
2023-11-27 10:35:47 +08:00

27 lines
801 B
Diff

From ac917ecc5abc25a69821ab6a9be323ed1dd39172 Mon Sep 17 00:00:00 2001
From: lihengwei <lihengwei@uniontech.com>
Date: Tue, 21 Nov 2023 14:57:34 +0800
Subject: [PATCH 1/4] fix printf error in main.cpp
Signed-off-by: lihengwei <lihengwei@uniontech.com>
---
observer_agent/service/main.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/observer_agent/service/main.cpp b/observer_agent/service/main.cpp
index f177645..bd01690 100644
--- a/observer_agent/service/main.cpp
+++ b/observer_agent/service/main.cpp
@@ -164,7 +164,7 @@ int main(int argc, char *argv[])
r = daemon(0, 0);
if (r == -1)
{
- printf("daemon failed, r:%d\n");
+ printf("daemon failed, r:%d\n", r);
exit(EXIT_FAILURE);
}
}
--
2.33.0