mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
include/debug.h: Use <nuttx/debug.h> in apps
Replace app-side includes of <debug.h> with <nuttx/debug.h> to use the header from the NuttX tree explicitly after the header move. Signed-off-by: Piyush Patle <piyushpatle228@gmail.com>
This commit is contained in:
parent
3591378113
commit
9d849adfab
352 changed files with 403 additions and 404 deletions
|
|
@ -44,7 +44,7 @@
|
|||
#include <errno.h>
|
||||
#include <dirent.h>
|
||||
#include <mqueue.h>
|
||||
#include <debug.h>
|
||||
#include <nuttx/debug.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <nuttx/audio/audio.h>
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
#include <nuttx/debug.h>
|
||||
#include <string.h>
|
||||
#include <inttypes.h>
|
||||
#include <poll.h>
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@
|
|||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
#include <nuttx/debug.h>
|
||||
#include <string.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
#include <nuttx/debug.h>
|
||||
#include <string.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
|
|
@ -107,7 +107,7 @@ static void pwm_help(FAR const char *progname,
|
|||
progname);
|
||||
printf("\nArguments are \"sticky\". "
|
||||
"For example, once the PWM frequency is\n");
|
||||
printf("specified, that frequency will be re-used until it is changed.\n");
|
||||
printf("specified, that frequency will be reused until it is changed.\n");
|
||||
printf("\n\"sticky\" OPTIONS include:\n");
|
||||
printf(" [-p devpath] selects the PWM device. "
|
||||
"Default: %s Current: %s\n", PWM_DEFAULT_DEVPATH,
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
#include <nuttx/debug.h>
|
||||
#include <inttypes.h>
|
||||
#include <stdarg.h>
|
||||
#include <stddef.h>
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
#include <debug.h>
|
||||
#include <nuttx/debug.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <nuttx/drivers/drivers.h>
|
||||
|
|
@ -72,7 +72,7 @@ FAR struct nand_raw_s *g_nand_mtd_raw;
|
|||
* Name: wrapper_init
|
||||
*
|
||||
* Description:
|
||||
* Initializes the wrapper by allocating memory and assiging the methods.
|
||||
* Initializes the wrapper by allocating memory and assigning the methods.
|
||||
*
|
||||
* Returned Value:
|
||||
* 0: Successful
|
||||
|
|
@ -114,7 +114,7 @@ int wrapper_init(void)
|
|||
* Name: terminate
|
||||
*
|
||||
* Description:
|
||||
* Handles the SIGTERM signal by exitting gracefully.
|
||||
* Handles the SIGTERM signal by exiting gracefully.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <debug.h>
|
||||
#include <nuttx/debug.h>
|
||||
#include <errno.h>
|
||||
#include <sys/epoll.h>
|
||||
#include <sys/timerfd.h>
|
||||
|
|
@ -193,7 +193,7 @@ static void epoll01(FAR void **state)
|
|||
ret = timerfd_stop(args->fd[0]);
|
||||
assert_true(ret == 0);
|
||||
|
||||
/* 3rd wait should directly return 0, timer has stoped */
|
||||
/* 3rd wait should directly return 0, timer has stopped */
|
||||
|
||||
ret = epoll_wait(args->efd, &evs, 1, 0);
|
||||
TIME_ASSERT_RANGE(get_elapse(args->start), 1000);
|
||||
|
|
@ -274,7 +274,7 @@ static void epoll02(FAR void **state)
|
|||
struct epoll_event evs[2];
|
||||
int ret;
|
||||
|
||||
/* 1st wait, shoud return after 1000ms */
|
||||
/* 1st wait, should return after 1000ms */
|
||||
|
||||
ret = epoll_wait(args->efd, evs, 2, 1100);
|
||||
TIME_ASSERT_RANGE(get_elapse(args->start), 1000);
|
||||
|
|
@ -406,7 +406,7 @@ static void epoll03(FAR void **state)
|
|||
|
||||
/* 1st wait should timeout, because server accept will trigger
|
||||
* EPOLLOUT event, but we do not set EPOLLOUT in ev.events.
|
||||
* Even the server has writen the data, but to check the EPOLLIN event,
|
||||
* Even the server has written the data, but to check the EPOLLIN event,
|
||||
* client need call epoll_wait again, because local socket internal state
|
||||
* changed, we need setup it again to get the EPOLLIN event.
|
||||
*/
|
||||
|
|
@ -416,7 +416,7 @@ static void epoll03(FAR void **state)
|
|||
TIME_ASSERT_RANGE(get_elapse(args->start), 1000);
|
||||
assert_true(ret == 0);
|
||||
|
||||
/* 2nd wait shoud return immediately, because server has send
|
||||
/* 2nd wait should return immediately, because server has sent
|
||||
* data to client.
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@
|
|||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <nuttx/crc8.h>
|
||||
#include <debug.h>
|
||||
#include <nuttx/debug.h>
|
||||
#include <assert.h>
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
#include <dirent.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
#include <nuttx/debug.h>
|
||||
|
||||
#include <nuttx/crc32.h>
|
||||
#include <nuttx/mtd/mtd.h>
|
||||
|
|
@ -598,7 +598,7 @@ static int nxffs_verifyfs(void)
|
|||
else
|
||||
{
|
||||
#if CONFIG_TESTING_NXFFS_VERBOSE != 0
|
||||
printf(" Verifed file %s\n", file->name);
|
||||
printf(" Verified file %s\n", file->name);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
#include <dirent.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
#include <nuttx/debug.h>
|
||||
|
||||
#include <nuttx/crc32.h>
|
||||
#include <nuttx/mtd/mtd.h>
|
||||
|
|
@ -611,7 +611,7 @@ static int smart_verifyfs(void)
|
|||
else
|
||||
{
|
||||
#if CONFIG_TESTING_SMART_VERBOSE != 0
|
||||
printf(" Verifed file %s\n", file->name);
|
||||
printf(" Verified file %s\n", file->name);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
#include <nuttx/debug.h>
|
||||
#include <assert.h>
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@
|
|||
#include <limits.h>
|
||||
#include <libgen.h>
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
#include <nuttx/debug.h>
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
#include <nuttx/config.h>
|
||||
#include <stdlib.h>
|
||||
#include <debug.h>
|
||||
#include <nuttx/debug.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <pthread.h>
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#include <debug.h>
|
||||
#include <nuttx/debug.h>
|
||||
|
||||
#include "ostest.h"
|
||||
|
||||
|
|
@ -532,7 +532,7 @@ errout_with_waiter:
|
|||
total_handled = g_odd_handled + g_even_handled;
|
||||
total_nested = g_odd_nested + g_even_nested;
|
||||
|
||||
printf("signest_test: With intefering thread\n");
|
||||
printf("signest_test: With interfering thread\n");
|
||||
printf(" Total signalled %-3d Odd=%-3d Even=%-3d\n",
|
||||
total_signals, odd_signals, even_signals);
|
||||
printf(" Total handled %-3d Odd=%-3d Even=%-3d\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue