You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/11/09 12:11:17 UTC

[incubator-nuttx-apps] 02/05: testing/ostest/signest.c: Fix a printf warning

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/incubator-nuttx-apps.git

commit 6f6c4529917ef69a1eeb1491eed745fbb90f46b7
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Thu Nov 5 20:49:45 2020 +0900

    testing/ostest/signest.c: Fix a printf warning
    
    error: too many arguments for format [-Werror=format-extra-args]
---
 testing/ostest/signest.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/testing/ostest/signest.c b/testing/ostest/signest.c
index f7a1593..3548ee6 100644
--- a/testing/ostest/signest.c
+++ b/testing/ostest/signest.c
@@ -167,7 +167,8 @@ static int waiter_main(int argc, char *argv[])
           ret = sigaction(i, &act, NULL);
           if (ret < 0)
             {
-              printf("waiter_main: WARNING sigaction failed\n" , errno);
+              printf("waiter_main: WARNING sigaction failed with %d\n",
+                     errno);
               return EXIT_FAILURE;
             }
         }