Re: [I] How to print filename and line by assert [nuttx]

2023-10-19 Thread via GitHub
xiaoxiang781216 closed issue #10416: How to print filename and line by assert URL: https://github.com/apache/nuttx/issues/10416 -- 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.

Re: [I] How to print filename and line by assert [nuttx]

2023-10-18 Thread via GitHub
anchao commented on issue #10416: URL: https://github.com/apache/nuttx/issues/10416#issuecomment-1770170073 Thanks for the clear explanation, I followed your suggestion to separate CONFIG_ASSERTIONS_FILENAME from CONFIG_DEBUG_ASSERTIONS_FILENAME, and remove the coupling between assert(3) wi

Re: [I] How to print filename and line by assert [nuttx]

2023-10-17 Thread via GitHub
SPRESENSE commented on issue #10416: URL: https://github.com/apache/nuttx/issues/10416#issuecomment-1767541151 @anchao > You mean CONFIG_DEBUG is actually CONFIG_NDEBUG=y right? No. It is not about `CONFIG_NDEBUG`. The NuttX assertion has two types, `assert()`(=`ASSERT()`) an

Re: [I] How to print filename and line by assert [nuttx]

2023-10-17 Thread via GitHub
anchao commented on issue #10416: URL: https://github.com/apache/nuttx/issues/10416#issuecomment-1765982237 You mean `CONFIG_DEBUG` is actually `CONFIG_NDEBUG=y` right? This is not introduced by my PR: https://github.com/apache/nuttx/blob/master/include/assert.h#L110-L114 so your p

Re: [I] How to print filename and line by assert [nuttx]

2023-10-11 Thread via GitHub
SPRESENSE commented on issue #10416: URL: https://github.com/apache/nuttx/issues/10416#issuecomment-1758684786 I think that `assert()` should print the filename and line without `CONFIG_DEBUG`. -- This is an automated message from the Apache Git Service. To respond to the message, ple

Re: [I] How to print filename and line by assert [nuttx]

2023-10-11 Thread via GitHub
anchao commented on issue #10416: URL: https://github.com/apache/nuttx/issues/10416#issuecomment-1757382171 I just check the config, `CONFIG_DEBUG_ASSERTIONS_FILENAME` is default y if enable `CONFIG_DEBUG_ASSERTIONS` , the assert file name could be printed if enable `CONFIG_DEBUG_ASSERTIO

Re: [I] How to print filename and line by assert [nuttx]

2023-10-11 Thread via GitHub
SPRESENSE commented on issue #10416: URL: https://github.com/apache/nuttx/issues/10416#issuecomment-1757166309 @xiaoxiang781216 @anchao How about this issue? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL