mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +08:00
syslog: Remove SYSLOG_SERIAL_CONSOLE which isn't really used
This commit is contained in:
@@ -6716,7 +6716,7 @@ int syslog_initialize(void);
|
|||||||
<ol>
|
<ol>
|
||||||
<li>
|
<li>
|
||||||
<p><b>Low-Level Serial Output</b>.
|
<p><b>Low-Level Serial Output</b>.
|
||||||
If you are using a SYSLOG console channel (<code>CONFIG_SYSLOG_CONSOLE</code>) with a serial console (<code>CONFIG_SYSLOG_SERIAL_CONSOLE</code>) and if the underlying architecture supports the low-level <code>up_putc()</code> interface(<code>CONFIG_ARCH_LOWPUTC</code>), then the SYLOG logic will direct the output to <code>up_putc()</code> which is capable of generating the serial output within the context of an interrupt handler.
|
If you are using a SYSLOG console channel (<code>CONFIG_SYSLOG_CONSOLE</code>) and if the underlying architecture supports the low-level <code>up_putc()</code> interface(<code>CONFIG_ARCH_LOWPUTC</code>), then the SYLOG logic will direct the output to <code>up_putc()</code> which is capable of generating the serial output within the context of an interrupt handler.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
There are a few issues in doing this however:
|
There are a few issues in doing this however:
|
||||||
@@ -6781,16 +6781,12 @@ int syslog_initialize(void);
|
|||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>
|
||||||
<code>CONFIG_SYSLOG_CONSOLE</code>. This configuration option is manually selected from the SYSLOG menu. This is the option that actually enables the SYSLOG console device. It depends on <code>CONFIG_DEV_CONSOLE</code> and it will automatically select <code>CONFIG_SYSLOG_SERIAL_CONSOLE</code> if <code>CONFIG_SERIAL_CONSOLE</code> is selected.
|
<code>CONFIG_SYSLOG_CONSOLE</code>. This configuration option is manually selected from the SYSLOG menu. This is the option that actually enables the SYSLOG console device. It depends on <code>CONFIG_DEV_CONSOLE</code>.
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>
|
||||||
<code>CONFIG_ARCH_LOWPUTC</code>. This is an indication from the architecture configuration that the platform supports the <code>up_putc()</code> interface. <code>up_putc()</code> is a very low level UART interface that can even be used from interrupt handling.
|
<code>CONFIG_ARCH_LOWPUTC</code>. This is an indication from the architecture configuration that the platform supports the <code>up_putc()</code> interface. <code>up_putc()</code> is a very low level UART interface that can even be used from interrupt handling.
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
<p>
|
|
||||||
<code>CONFIG_SYSLOG_SERIAL_CONSOLE</code>. This enables certain features of the SYSLOG operation that depend on a serial console. If <code>CONFIG_ARCH_LOWPUTC</code> is also selected, for example, then <code>up_putc()</code> will be used for the forced SYSLOG output.
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
<p>
|
<p>
|
||||||
Interrupt level SYSLOG output will be lost unless: (1) the interrupt buffer
|
Interrupt level SYSLOG output will be lost unless: (1) the interrupt buffer
|
||||||
|
|||||||
@@ -1902,7 +1902,6 @@ Configuration sub-directories
|
|||||||
following in the .config file:
|
following in the .config file:
|
||||||
|
|
||||||
CONFIG_SYSLOG_CONSOLE=y
|
CONFIG_SYSLOG_CONSOLE=y
|
||||||
CONFIG_SYSLOG_SERIAL_CONSOLE=y
|
|
||||||
|
|
||||||
7. Telnet: The clicker2-stm32 star point configuration supports the
|
7. Telnet: The clicker2-stm32 star point configuration supports the
|
||||||
Telnet daemon, but not the Telnet client; the star hub configuration
|
Telnet daemon, but not the Telnet client; the star hub configuration
|
||||||
|
|||||||
@@ -126,10 +126,6 @@ config SYSLOG_PREFIX_STRING
|
|||||||
---help---
|
---help---
|
||||||
The prefix string to be prepend.
|
The prefix string to be prepend.
|
||||||
|
|
||||||
config SYSLOG_SERIAL_CONSOLE
|
|
||||||
bool
|
|
||||||
default n
|
|
||||||
|
|
||||||
choice
|
choice
|
||||||
prompt "System log device"
|
prompt "System log device"
|
||||||
default SYSLOG_CONSOLE if DEV_CONSOLE
|
default SYSLOG_CONSOLE if DEV_CONSOLE
|
||||||
@@ -156,7 +152,6 @@ config RAMLOG_SYSLOG
|
|||||||
config SYSLOG_CONSOLE
|
config SYSLOG_CONSOLE
|
||||||
bool "Log to /dev/console"
|
bool "Log to /dev/console"
|
||||||
depends on DEV_CONSOLE
|
depends on DEV_CONSOLE
|
||||||
select SYSLOG_SERIAL_CONSOLE if SERIAL_CONSOLE
|
|
||||||
select SYSLOG_WRITE
|
select SYSLOG_WRITE
|
||||||
---help---
|
---help---
|
||||||
Use the system console as a SYSLOG output device.
|
Use the system console as a SYSLOG output device.
|
||||||
|
|||||||
@@ -235,9 +235,8 @@ SYSLOG Channels
|
|||||||
|
|
||||||
1. Low-Level Serial Output
|
1. Low-Level Serial Output
|
||||||
--------------------------
|
--------------------------
|
||||||
If you are using a SYSLOG console channel (CONFIG_SYSLOG_CONSOLE) with a
|
If you are using a SYSLOG console channel (CONFIG_SYSLOG_CONSOLE) and if
|
||||||
serial console (CONFIG_SYSLOG_SERIAL_CONSOLE) and if the underlying
|
the underlying architecture supports the low-level up_putc() interface
|
||||||
architecture supports the low-level up_putc() interface
|
|
||||||
(CONFIG_ARCH_LOWPUTC), then the SYSLOG logic will direct the output to
|
(CONFIG_ARCH_LOWPUTC), then the SYSLOG logic will direct the output to
|
||||||
up_putc() which is capable of generating the serial output within the
|
up_putc() which is capable of generating the serial output within the
|
||||||
context of an interrupt handler.
|
context of an interrupt handler.
|
||||||
@@ -301,17 +300,11 @@ SYSLOG Channel Options
|
|||||||
There is no user selection.
|
There is no user selection.
|
||||||
* CONFIG_SYSLOG_CONSOLE. This configuration option is manually selected
|
* CONFIG_SYSLOG_CONSOLE. This configuration option is manually selected
|
||||||
from the SYSLOG menu. This is the option that acutally enables the
|
from the SYSLOG menu. This is the option that acutally enables the
|
||||||
SYSLOG console device. It depends on CONFIG_DEV_CONSOLE and it will
|
SYSLOG console device. It depends on CONFIG_DEV_CONSOLE.
|
||||||
automatically select CONFIG_SYSLOG_SERIAL_CONSOLE if
|
|
||||||
CONFIG_SERIAL_CONSOLE is selected.
|
|
||||||
* CONFIG_ARCH_LOWPUTC. This is an indication from the architecture
|
* CONFIG_ARCH_LOWPUTC. This is an indication from the architecture
|
||||||
configuration that the platform supports the up_putc() interface.
|
configuration that the platform supports the up_putc() interface.
|
||||||
up_putc() is a very low level UART interface that can even be used from
|
up_putc() is a very low level UART interface that can even be used from
|
||||||
interrupt handling.
|
interrupt handling.
|
||||||
* CONFIG_SYSLOG_SERIAL_CONSOLE. This enables certain features of the
|
|
||||||
SYSLOG operation that depend on a serial console. If
|
|
||||||
CONFIG_ARCH_LOWPUTC is also selected, for example, then up_putc() will
|
|
||||||
be used for the forced SYSLOG output.
|
|
||||||
|
|
||||||
Interrupt level SYSLOG output will be lost unless: (1) the interrupt buffer
|
Interrupt level SYSLOG output will be lost unless: (1) the interrupt buffer
|
||||||
is enabled to support serialization, or (2) a serial console is used and
|
is enabled to support serialization, or (2) a serial console is used and
|
||||||
|
|||||||
Reference in New Issue
Block a user