syslog/ramlog: Fix error: argument to 'section' attribute is not valid

mach-o section specifier requires a segment and section separated by a comma

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2022-03-05 15:20:18 +08:00
committed by Petro Karashchenko
parent 671973b39c
commit 8a880df37d
2 changed files with 5 additions and 1 deletions
+1
View File
@@ -244,6 +244,7 @@ if RAMLOG_SYSLOG
config RAMLOG_BUFFER_SECTION config RAMLOG_BUFFER_SECTION
string "The section where ramlog buffer is located" string "The section where ramlog buffer is located"
default ".bss" default ".bss"
depends on !ARCH_SIM
---help--- ---help---
The section where ramlog buffer is located. The section where ramlog buffer is located.
The section shall not be initialized on system boot. The section shall not be initialized on system boot.
+4 -1
View File
@@ -125,7 +125,10 @@ static const struct file_operations g_ramlogfops =
#ifdef CONFIG_RAMLOG_SYSLOG #ifdef CONFIG_RAMLOG_SYSLOG
static char g_sysbuffer[CONFIG_RAMLOG_BUFSIZE] static char g_sysbuffer[CONFIG_RAMLOG_BUFSIZE]
locate_data(CONFIG_RAMLOG_BUFFER_SECTION); #ifdef CONFIG_RAMLOG_BUFFER_SECTION
locate_data(CONFIG_RAMLOG_BUFFER_SECTION)
#endif
;
/* This is the device structure for the console or syslogging function. It /* This is the device structure for the console or syslogging function. It
* must be statically initialized because the RAMLOG ramlog_putc function * must be statically initialized because the RAMLOG ramlog_putc function