tests: logging: log_api: Use positive CONFIG_LOG_BUFFER_SIZE
When immediate mode is used CONFIG_LOG_BUFFER_SIZE is not defined
in kconfig. For proper compilation it is then defined in the test
file. Use positive value to please coverity which complains about
dead code when it is set to 0. Fixing CID 235961, 235965.
Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
diff --git a/tests/subsys/logging/log_api/src/test.inc b/tests/subsys/logging/log_api/src/test.inc
index 0e26e05..99dcc95 100644
--- a/tests/subsys/logging/log_api/src/test.inc
+++ b/tests/subsys/logging/log_api/src/test.inc
@@ -11,7 +11,7 @@
#include <logging/log_ctrl.h>
#ifndef CONFIG_LOG_BUFFER_SIZE
-#define CONFIG_LOG_BUFFER_SIZE 0
+#define CONFIG_LOG_BUFFER_SIZE 4
#endif
#define MODULE_NAME test