You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/05/31 12:40:50 UTC
[GitHub] [incubator-nuttx] Donny9 opened a new pull request #3807: syslog/Kconfig: support config multi syslog channel
Donny9 opened a new pull request #3807:
URL: https://github.com/apache/incubator-nuttx/pull/3807
## Summary
We can select multi syslog channel(syslog ramlog、syslog console、syslog default and so on) by config instead of adding multi channel by API syslog_channel.
## Impact
## Testing
daily test.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] gustavonihei commented on pull request #3807: syslog/Kconfig: support config multi syslog channel
Posted by GitBox <gi...@apache.org>.
gustavonihei commented on pull request #3807:
URL: https://github.com/apache/incubator-nuttx/pull/3807#issuecomment-852329205
> @gustavonihei do you have more comment?
I think I'm okay with the current state. I saw that the string config default option was changed to `""`, but I haven't noticed the enforcement method. Did I miss something or is it okay to proceed this way?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] gustavonihei commented on a change in pull request #3807: syslog/Kconfig: support config multi syslog channel
Posted by GitBox <gi...@apache.org>.
gustavonihei commented on a change in pull request #3807:
URL: https://github.com/apache/incubator-nuttx/pull/3807#discussion_r642495462
##########
File path: drivers/syslog/Kconfig
##########
@@ -195,7 +190,7 @@ config SYSLOG_CHAR
config RAMLOG_SYSLOG
bool "Use RAMLOG for SYSLOG"
- depends on RAMLOG && !ARCH_SYSLOG
+ depends on RAMLOG
Review comment:
I believe it is better to be explicit with Kconfig default values.
This ways we ensure the consistency of our Kconfig use across the codebase. Furthermore, it is easier to understand when you see the default field.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a change in pull request #3807: syslog/Kconfig: support config multi syslog channel
Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on a change in pull request #3807:
URL: https://github.com/apache/incubator-nuttx/pull/3807#discussion_r642498254
##########
File path: drivers/syslog/Kconfig
##########
@@ -195,7 +190,7 @@ config SYSLOG_CHAR
config RAMLOG_SYSLOG
bool "Use RAMLOG for SYSLOG"
- depends on RAMLOG && !ARCH_SYSLOG
+ depends on RAMLOG
Review comment:
Ok.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] gustavonihei commented on a change in pull request #3807: syslog/Kconfig: support config multi syslog channel
Posted by GitBox <gi...@apache.org>.
gustavonihei commented on a change in pull request #3807:
URL: https://github.com/apache/incubator-nuttx/pull/3807#discussion_r642500049
##########
File path: drivers/syslog/Kconfig
##########
@@ -215,20 +211,21 @@ config SYSLOG_RPMSG
---help---
Use the rpmsg as a SYSLOG output device, send message to remote proc.
-config SYSLOG_RPMSG_SERVER_NAME
- string "The name of Syslog Rpmsg Server"
- depends on SYSLOG_RPMSG
- ---help---
- The proc name of rpmsg server. Client sends message to
- specified name of remote proc.
-
config SYSLOG_DEFAULT
bool "Default SYSLOG device"
+ default ARCH_LOWPUTC && !SYSLOG_RPMSG && !SYSLOG_CONSOLE && !RAMLOG_SYSLOG && !SYSLOG_CHAR
---help---
syslog() interfaces will be present, but all output will go to the
up_putc(ARCH_LOWPUTC == y) or bit-bucket(ARCH_LOWPUTC == n).
-endchoice
+endif
+
+config SYSLOG_RPMSG_SERVER_NAME
+ string "The name of Syslog Rpmsg Server"
+ depends on SYSLOG_RPMSG
Review comment:
Ok, I agree.
Does Kconfig assume `""` as the default value for a string config?
This enforcement is currently not implemented, right?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] Donny9 commented on a change in pull request #3807: syslog/Kconfig: support config multi syslog channel
Posted by GitBox <gi...@apache.org>.
Donny9 commented on a change in pull request #3807:
URL: https://github.com/apache/incubator-nuttx/pull/3807#discussion_r642505600
##########
File path: drivers/syslog/Kconfig
##########
@@ -215,20 +211,21 @@ config SYSLOG_RPMSG
---help---
Use the rpmsg as a SYSLOG output device, send message to remote proc.
-config SYSLOG_RPMSG_SERVER_NAME
- string "The name of Syslog Rpmsg Server"
- depends on SYSLOG_RPMSG
- ---help---
- The proc name of rpmsg server. Client sends message to
- specified name of remote proc.
-
config SYSLOG_DEFAULT
bool "Default SYSLOG device"
+ default ARCH_LOWPUTC && !SYSLOG_RPMSG && !SYSLOG_CONSOLE && !RAMLOG_SYSLOG && !SYSLOG_CHAR
---help---
syslog() interfaces will be present, but all output will go to the
up_putc(ARCH_LOWPUTC == y) or bit-bucket(ARCH_LOWPUTC == n).
-endchoice
+endif
+
+config SYSLOG_RPMSG_SERVER_NAME
+ string "The name of Syslog Rpmsg Server"
+ depends on SYSLOG_RPMSG
Review comment:
Done!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a change in pull request #3807: syslog/Kconfig: support config multi syslog channel
Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on a change in pull request #3807:
URL: https://github.com/apache/incubator-nuttx/pull/3807#discussion_r642490813
##########
File path: drivers/syslog/Kconfig
##########
@@ -215,20 +211,21 @@ config SYSLOG_RPMSG
---help---
Use the rpmsg as a SYSLOG output device, send message to remote proc.
-config SYSLOG_RPMSG_SERVER_NAME
- string "The name of Syslog Rpmsg Server"
- depends on SYSLOG_RPMSG
- ---help---
- The proc name of rpmsg server. Client sends message to
- specified name of remote proc.
-
config SYSLOG_DEFAULT
bool "Default SYSLOG device"
+ default ARCH_LOWPUTC && !SYSLOG_RPMSG && !SYSLOG_CONSOLE && !RAMLOG_SYSLOG && !SYSLOG_CHAR
---help---
syslog() interfaces will be present, but all output will go to the
up_putc(ARCH_LOWPUTC == y) or bit-bucket(ARCH_LOWPUTC == n).
-endchoice
+endif
+
+config SYSLOG_RPMSG_SERVER_NAME
+ string "The name of Syslog Rpmsg Server"
+ depends on SYSLOG_RPMSG
Review comment:
There isn't a suitable default value, so it's better to no default value at all and then enforce the user must give one in defconfig.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] xiaoxiang781216 merged pull request #3807: syslog/Kconfig: support config multi syslog channel
Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged pull request #3807:
URL: https://github.com/apache/incubator-nuttx/pull/3807
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] Donny9 commented on a change in pull request #3807: syslog/Kconfig: support config multi syslog channel
Posted by GitBox <gi...@apache.org>.
Donny9 commented on a change in pull request #3807:
URL: https://github.com/apache/incubator-nuttx/pull/3807#discussion_r642505527
##########
File path: drivers/syslog/Kconfig
##########
@@ -195,7 +190,7 @@ config SYSLOG_CHAR
config RAMLOG_SYSLOG
bool "Use RAMLOG for SYSLOG"
- depends on RAMLOG && !ARCH_SYSLOG
+ depends on RAMLOG
Review comment:
Done!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a change in pull request #3807: syslog/Kconfig: support config multi syslog channel
Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on a change in pull request #3807:
URL: https://github.com/apache/incubator-nuttx/pull/3807#discussion_r642491151
##########
File path: drivers/syslog/Kconfig
##########
@@ -195,7 +190,7 @@ config SYSLOG_CHAR
config RAMLOG_SYSLOG
bool "Use RAMLOG for SYSLOG"
- depends on RAMLOG && !ARCH_SYSLOG
+ depends on RAMLOG
Review comment:
the default is false, so we can skip it safely.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] gustavonihei commented on a change in pull request #3807: syslog/Kconfig: support config multi syslog channel
Posted by GitBox <gi...@apache.org>.
gustavonihei commented on a change in pull request #3807:
URL: https://github.com/apache/incubator-nuttx/pull/3807#discussion_r642487384
##########
File path: drivers/syslog/Kconfig
##########
@@ -195,7 +190,7 @@ config SYSLOG_CHAR
config RAMLOG_SYSLOG
bool "Use RAMLOG for SYSLOG"
- depends on RAMLOG && !ARCH_SYSLOG
+ depends on RAMLOG
Review comment:
Missing default value for bool config
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] xiaoxiang781216 commented on pull request #3807: syslog/Kconfig: support config multi syslog channel
Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on pull request #3807:
URL: https://github.com/apache/incubator-nuttx/pull/3807#issuecomment-852324943
@gustavonihei do you have more comment?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] xiaoxiang781216 commented on pull request #3807: syslog/Kconfig: support config multi syslog channel
Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on pull request #3807:
URL: https://github.com/apache/incubator-nuttx/pull/3807#issuecomment-852668698
> > @gustavonihei do you have more comment?
>
> I think I'm okay with the current state. I saw that the string config default option was changed to `""`, but I haven't noticed the enforcement method. Did I miss something or is it okay to proceed this way?
We try with/without default "", the result is same(SYSLOG_RPMSG_SERVER_NAME=""), so it look like that there is no mehtod to enforce the user give a value in defconfig.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] gustavonihei commented on a change in pull request #3807: syslog/Kconfig: support config multi syslog channel
Posted by GitBox <gi...@apache.org>.
gustavonihei commented on a change in pull request #3807:
URL: https://github.com/apache/incubator-nuttx/pull/3807#discussion_r642487150
##########
File path: drivers/syslog/Kconfig
##########
@@ -215,20 +211,21 @@ config SYSLOG_RPMSG
---help---
Use the rpmsg as a SYSLOG output device, send message to remote proc.
-config SYSLOG_RPMSG_SERVER_NAME
- string "The name of Syslog Rpmsg Server"
- depends on SYSLOG_RPMSG
- ---help---
- The proc name of rpmsg server. Client sends message to
- specified name of remote proc.
-
config SYSLOG_DEFAULT
bool "Default SYSLOG device"
+ default ARCH_LOWPUTC && !SYSLOG_RPMSG && !SYSLOG_CONSOLE && !RAMLOG_SYSLOG && !SYSLOG_CHAR
---help---
syslog() interfaces will be present, but all output will go to the
up_putc(ARCH_LOWPUTC == y) or bit-bucket(ARCH_LOWPUTC == n).
-endchoice
+endif
+
+config SYSLOG_RPMSG_SERVER_NAME
+ string "The name of Syslog Rpmsg Server"
+ depends on SYSLOG_RPMSG
Review comment:
Missing default value for string config
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org