I found that sinfo called nx_vsyslog, then called clock_gettime
if (OSINIT_HW_READY())
{
#if defined(CONFIG_SYSLOG_TIMESTAMP_REALTIME)
/* Use CLOCK_REALTIME if so configured */
clock_gettime(CLOCK_REALTIME, &ts);
#else
/* Prefer monotonic when enabled, as it can be synchronized to
* RTC with clock_resynchronize.
*/
clock_gettime(CLOCK_MONOTONIC, &ts);
#endif
But clock_gettime called sinfo again, which makes a recursive bug?
I enabled sinfo printing:![图片](https://user-images.githubusercontent.com/40800103/229732968-65422dbe-1ae7-4bd5-a722-ff7e2e28a15a.png)
I found that sinfo called nx_vsyslog, then called clock_gettime
But clock_gettime called sinfo again, which makes a recursive bug?
Here`s the backtrace from gdb: