mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
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:
committed by
Petro Karashchenko
parent
671973b39c
commit
8a880df37d
@@ -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.
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user