[PATCH] layer23/cell_log: Set default logfile to /dev/null

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/baseband-devel@lists.osmocom.org/.

Vadim Yanitskiy axilirator at gmail.com
Sat Jan 30 14:36:22 UTC 2016


When '/var/log/osmocom.log' does not exist the cell_log
app can not start normally because it has no permissions
to create a new file. Furthermore, logfile is optional now.
---
 src/host/layer23/src/misc/app_cell_log.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/host/layer23/src/misc/app_cell_log.c b/src/host/layer23/src/misc/app_cell_log.c
index a7f42c3..5b7f7b4 100644
--- a/src/host/layer23/src/misc/app_cell_log.c
+++ b/src/host/layer23/src/misc/app_cell_log.c
@@ -43,7 +43,7 @@ extern void *l23_ctx;
 extern uint16_t basic_band_range[][2];
 extern uint16_t (*band_range)[][2];
 
-char *logname = "/var/log/osmocom.log";
+char *logname = "/dev/null";
 int RACH_MAX = 2;
 
 int _scan_work(struct osmocom_ms *ms)
-- 
1.9.1




More information about the baseband-devel mailing list