acassis commented on code in PR #12765:
URL: https://github.com/apache/nuttx/pull/12765#discussion_r1691651147
##########
drivers/drivers_initialize.c:
##########
@@ -49,6 +49,15 @@
#include <nuttx/virtio/virtio.h>
#include <nuttx/drivers/optee.h>
+/****************************************************************************
+ * Pre-processor Definitions
+ ****************************************************************************/
+
+#if (defined(CONFIG_LWL_CONSOLE) + defined(CONFIG_CONSOLE_SYSLOG) + \
+ defined(CONFIG_SERIAL_RTT_CONSOLE) + defined(CONFIG_RPMSG_UART_CONSOLE))
> 1
+# error More than one console driver selected. Check your configuration !
Review Comment:
If is possible to include which ones are included? Maybe:
```
#define MULTCONSOLES do { defined(CONFIG_LWL_CONSOLE) ? "LWL_CONSOLE, " :
defined(CONFIG_CONSOLE_SYSLOG) ? "CONSOLE_SYSLOG, " :
defined(CONFIG_SERIAL_RTT_CONSOLE) ? "RTT_CONSOLE, " :
defined(CONFIG_RPMSG_UART_CONSOLE) ? "RPMSG_UART_CONSOLE. " : ". " } while(0);
# error "More than one console driver selected: " MULTCONSOLES "Check your
configuration !"
```
Not sure if this approach will work, but I think it will.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]