]> git.pld-linux.org Git - packages/libkcapi.git/blob - disable-log.patch
upstream fix disabling console logging by default; rel 2
[packages/libkcapi.git] / disable-log.patch
1 From 7a56432a48f6af4b2e5c2f0ec62ff974b111a3e9 Mon Sep 17 00:00:00 2001
2 From: Stephan Mueller <smueller@chronox.de>
3 Date: Wed, 27 Jul 2022 07:21:45 +0200
4 Subject: [PATCH] set default log level to NONE
5
6 Libraries should not issue any logs. Thus, set the default log level to
7 NONE.
8
9 Suggested-by: Fabian Vogt
10 Signed-off-by: Stephan Mueller <smueller@chronox.de>
11 ---
12  lib/kcapi-kernel-if.c | 2 +-
13  1 file changed, 1 insertion(+), 1 deletion(-)
14
15 diff --git a/lib/kcapi-kernel-if.c b/lib/kcapi-kernel-if.c
16 index 0df1a02..d7b10bf 100644
17 --- a/lib/kcapi-kernel-if.c
18 +++ b/lib/kcapi-kernel-if.c
19 @@ -55,7 +55,7 @@ void orig_memset_secure(void *s, int c, uint32_t n)
20  /************************************************************
21   * Logging logic
22   ************************************************************/
23 -enum kcapi_verbosity kcapi_verbosity_level = KCAPI_LOG_ERR;
24 +enum kcapi_verbosity kcapi_verbosity_level = KCAPI_LOG_NONE;
25  
26  void kcapi_dolog(enum kcapi_verbosity severity, const char *fmt, ...)
27  {
This page took 0.030371 seconds and 3 git commands to generate.