wangchdo opened a new pull request, #17267:
URL: https://github.com/apache/nuttx/pull/17267

   ## Summary
   
       Introduce early_syslog() to enable basic logging during the very early
       boot or system down stages, when the full syslog subsystem is not yet
       available.
   
   ## Impact
   
    New function added, no impact to other nuttx functions
   
   ## Testing
   
   **test code:**
   
   ```
   int main(int argc, FAR char *argv[])
   {
     
early_syslog("\n\n######################################################\n\n");
     early_syslog("Hello, Nice to meet you!!\n");
     early_syslog("My name is: %s\n", "Danny");
     early_syslog("My age is: %d\n", 16);
     
early_syslog("\n\n######################################################\n\n");
     return 0;
   }
   ```
   
   **test log on board fvp-armv8r-aarch32**
   
   ```
   
   nsh> hello
   [ 2] nsh_main: task_spawn: name=hello entry=0x42750 file_actions=0x2000a8d0 
attr=0x2000a8d4 argv=0x2000a9b4
   [ 2] nsh_main: spawn_execattrs: Setting policy=2 priority=100 for pid=3
   [ 2] nsh_main: nxtask_activate: hello pid=3,TCB=0x2000af20
   
   
   ######################################################
   
   Hello, Nice to meet you!!
   My name is: Danny
   My age is: 16
   
   
   ######################################################
   
   [ 3] hello: nxtask_exit: hello pid=3,TCB=0x2000af20
   nsh> 
   nsh> 
   nsh> 
   nsh> 
   ```
   **ostest passed on board fvp-armv8r-aarch32**
   
   
   <img width="663" height="710" alt="image" 
src="https://github.com/user-attachments/assets/6cebc1f5-4200-4fec-967e-8525aed09e56";
 />
   
   


-- 
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]

Reply via email to