This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 4eba6101b module/sotest: Using syslog to print log
4eba6101b is described below

commit 4eba6101b4869781f2211092a7cf48a484bb21cd
Author: wangjianyu3 <[email protected]>
AuthorDate: Wed Oct 16 18:40:33 2024 +0800

    module/sotest: Using syslog to print log
    
    Signed-off-by: wangjianyu3 <[email protected]>
---
 examples/sotest/main/sotest_main.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/examples/sotest/main/sotest_main.c 
b/examples/sotest/main/sotest_main.c
index dbac4b050..64caf0704 100644
--- a/examples/sotest/main/sotest_main.c
+++ b/examples/sotest/main/sotest_main.c
@@ -134,7 +134,8 @@ int main(int argc, FAR char *argv[])
 
   for (; desc.minor <= CONFIG_EXAMPLES_SOTEST_DEVMINOR_MAX; desc.minor++)
     {
-      printf("main: Registering romdisk at /dev/ram%d\n", desc.minor);
+      syslog(LOG_INFO, "main: Registering romdisk at /dev/ram%d\n",
+             desc.minor);
 
       ret = boardctl(BOARDIOC_ROMDISK, (uintptr_t)&desc);
       if (ret >= 0)
@@ -154,8 +155,8 @@ int main(int argc, FAR char *argv[])
   /* Mount the file system */
 
   sprintf(devname, SOTEST_DEVPATH_FMT, desc.minor);
-  printf("main: Mounting ROMFS filesystem at target=%s with source=%s\n",
-         BINDIR, devname);
+  syslog(LOG_INFO, "main: Mounting ROMFS filesystem at "
+         "target=%s with source=%s\n", BINDIR, devname);
 
   ret = mount(devname, BINDIR, "romfs", MS_RDONLY,
               NULL);

Reply via email to