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 0b727d290 examples/sotest: Correct the path in the log
0b727d290 is described below

commit 0b727d290ba43099d30ae43b213edc414d970652
Author: wangjianyu3 <[email protected]>
AuthorDate: Wed Oct 16 10:58:25 2024 +0800

    examples/sotest: Correct the path in the log
    
    e.g.
      - ERROR: dlopen(/sotest) failed
      + ERROR: dlopen(/mnt/sotest/romfs/sotest) failed
    
    Signed-off-by: wangjianyu3 <[email protected]>
---
 examples/sotest/main/sotest_main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/sotest/main/sotest_main.c 
b/examples/sotest/main/sotest_main.c
index 64caf0704..205ed397c 100644
--- a/examples/sotest/main/sotest_main.c
+++ b/examples/sotest/main/sotest_main.c
@@ -177,7 +177,7 @@ int main(int argc, FAR char *argv[])
   handle1 = dlopen(BINDIR "/modprint", RTLD_NOW | RTLD_LOCAL);
   if (handle1 == NULL)
     {
-      fprintf(stderr, "ERROR: dlopen(/modprint) failed\n");
+      fprintf(stderr, "ERROR: dlopen(%s/modprint) failed\n", BINDIR);
       exit(EXIT_FAILURE);
     }
 #endif
@@ -187,7 +187,7 @@ int main(int argc, FAR char *argv[])
   handle2 = dlopen(BINDIR "/sotest", RTLD_NOW | RTLD_LOCAL);
   if (handle2 == NULL)
     {
-      fprintf(stderr, "ERROR: dlopen(/sotest) failed\n");
+      fprintf(stderr, "ERROR: dlopen(%s/sotest) failed\n", BINDIR);
       exit(EXIT_FAILURE);
     }
 

Reply via email to