This is an automated email from the ASF dual-hosted git repository. davids5 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
commit 736a21f0d5fa4250fb71380f859d0797d325fe6f Author: Xiang Xiao <xiaoxi...@xiaomi.com> AuthorDate: Tue Nov 24 16:24:50 2020 +0800 examples/chrono: Rename button_daemon to chrono_daemon Signed-off-by: Xiang Xiao <xiaoxi...@xiaomi.com> Change-Id: I1aaf0a6ec8466c35c96a35b30896def7917c8c03 --- examples/chrono/chrono_main.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/examples/chrono/chrono_main.c b/examples/chrono/chrono_main.c index bfa0e17..f7b17b6 100644 --- a/examples/chrono/chrono_main.c +++ b/examples/chrono/chrono_main.c @@ -113,10 +113,10 @@ static struct slcd_chrono_s g_slcd; ****************************************************************************/ /**************************************************************************** - * Name: button_daemon + * Name: chrono_daemon ****************************************************************************/ -static int button_daemon(int argc, char *argv[]) +static int chrono_daemon(int argc, char *argv[]) { FAR struct slcd_chrono_s *priv = &g_slcd; struct btn_notify_s btnevents; @@ -128,16 +128,16 @@ static int button_daemon(int argc, char *argv[]) UNUSED(i); - printf("button_daemon: Running\n"); + printf("chrono_daemon: Running\n"); /* Open the BUTTON driver */ - printf("button_daemon: Opening %s\n", BUTTON_DEVPATH); + printf("chrono_daemon: Opening %s\n", BUTTON_DEVPATH); fd = open(BUTTON_DEVPATH, O_RDONLY | O_NONBLOCK); if (fd < 0) { int errcode = errno; - printf("button_daemon: ERROR: Failed to open %s: %d\n", + printf("chrono_daemon: ERROR: Failed to open %s: %d\n", BUTTON_DEVPATH, errcode); goto errout; } @@ -149,12 +149,12 @@ static int button_daemon(int argc, char *argv[]) if (ret < 0) { int errcode = errno; - printf("button_daemon: ERROR: ioctl(BTNIOC_SUPPORTED) failed: %d\n", + printf("chrono_daemon: ERROR: ioctl(BTNIOC_SUPPORTED) failed: %d\n", errcode); goto errout_with_fd; } - printf("button_daemon: Supported BUTTONs 0x%02x\n", + printf("chrono_daemon: Supported BUTTONs 0x%02x\n", (unsigned int)supported); /* Define the notifications events */ @@ -172,7 +172,7 @@ static int button_daemon(int argc, char *argv[]) if (ret < 0) { int errcode = errno; - printf("button_daemon: ERROR: ioctl(BTNIOC_SUPPORTED) failed: %d\n", + printf("chrono_daemon: ERROR: ioctl(BTNIOC_SUPPORTED) failed: %d\n", errcode); goto errout_with_fd; } @@ -192,7 +192,7 @@ static int button_daemon(int argc, char *argv[]) if (ret < 0) { int errcode = errno; - printf("button_daemon: ERROR: sigwaitinfo() failed: %d\n", + printf("chrono_daemon: ERROR: sigwaitinfo() failed: %d\n", errcode); goto errout_with_fd; } @@ -219,7 +219,7 @@ errout_with_fd: errout: - printf("button_daemon: Terminating\n"); + printf("chrono_daemon: Terminating\n"); return EXIT_FAILURE; } @@ -317,12 +317,12 @@ int main(int argc, FAR char *argv[]) /* Create a thread to wait for the button events */ - ret = task_create("button_daemon", BUTTON_PRIORITY, - BUTTON_STACKSIZE, button_daemon, NULL); + ret = task_create("chrono_daemon", BUTTON_PRIORITY, + BUTTON_STACKSIZE, chrono_daemon, NULL); if (ret < 0) { int errcode = errno; - printf("buttons_main: ERROR: Failed to start button_daemon: %d\n", + printf("buttons_main: ERROR: Failed to start chrono_daemon: %d\n", errcode); return EXIT_FAILURE; }