Include debug.h for xerr/xinfo/xwarn caller
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
6e15af3786
commit
d3f8f423d5
@ -1,5 +1,5 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* canutils/canlib/canlib_getbaud.c
|
* apps/canutils/canlib/canlib_getbaud.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2016 Sebastien Lorquet. All rights reserved.
|
* Copyright (C) 2016 Sebastien Lorquet. All rights reserved.
|
||||||
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
||||||
@ -44,9 +44,14 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#include <debug.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <nuttx/can/can.h>
|
#include <nuttx/can/can.h>
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Public Functions
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: canlib_getbaud
|
* Name: canlib_getbaud
|
||||||
*
|
*
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* canutils/canlib/canlib_getloopback.c
|
* apps/canutils/canlib/canlib_getloopback.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2016 Sebastien Lorquet. All rights reserved.
|
* Copyright (C) 2016 Sebastien Lorquet. All rights reserved.
|
||||||
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
||||||
@ -45,9 +45,14 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#include <debug.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <nuttx/can/can.h>
|
#include <nuttx/can/can.h>
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Public Functions
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: canlib_getloopback
|
* Name: canlib_getloopback
|
||||||
*
|
*
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* canutils/canlib/canlib_getsilent.c
|
* apps/canutils/canlib/canlib_getsilent.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2016 Sebastien Lorquet. All rights reserved.
|
* Copyright (C) 2016 Sebastien Lorquet. All rights reserved.
|
||||||
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
||||||
@ -45,9 +45,14 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#include <debug.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <nuttx/can/can.h>
|
#include <nuttx/can/can.h>
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Public Functions
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: canlib_getsilent
|
* Name: canlib_getsilent
|
||||||
*
|
*
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* canutils/canlib/canlib_setbaud.c
|
* apps/canutils/canlib/canlib_setbaud.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2016 Sebastien Lorquet. All rights reserved.
|
* Copyright (C) 2016 Sebastien Lorquet. All rights reserved.
|
||||||
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
||||||
@ -44,9 +44,14 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#include <debug.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <nuttx/can/can.h>
|
#include <nuttx/can/can.h>
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Public Functions
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: canlib_setbaud
|
* Name: canlib_setbaud
|
||||||
*
|
*
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* canutils/canlib/canlib_setloopback.c
|
* apps/canutils/canlib/canlib_setloopback.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2016 Sebastien Lorquet. All rights reserved.
|
* Copyright (C) 2016 Sebastien Lorquet. All rights reserved.
|
||||||
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
||||||
@ -45,15 +45,21 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#include <debug.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <nuttx/can/can.h>
|
#include <nuttx/can/can.h>
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Public Functions
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: canlib_setloopback
|
* Name: canlib_setloopback
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Wrapper for CANIOC_SET_CONNMODES. When loopback mode is enabled, the CAN
|
* Wrapper for CANIOC_SET_CONNMODES. When loopback mode is enabled, the
|
||||||
* peripheral transmits on the bus, but only receives its own sent messages.
|
* CAN peripheral transmits on the bus, but only receives its own sent
|
||||||
|
* messages.
|
||||||
*
|
*
|
||||||
* Input Parameter:
|
* Input Parameter:
|
||||||
* fd - file descriptor of an opened can device
|
* fd - file descriptor of an opened can device
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* canutils/canlib/canlib_setsilent.c
|
* apps/canutils/canlib/canlib_setsilent.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2016 Sebastien Lorquet. All rights reserved.
|
* Copyright (C) 2016 Sebastien Lorquet. All rights reserved.
|
||||||
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
||||||
@ -45,9 +45,14 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#include <debug.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <nuttx/can/can.h>
|
#include <nuttx/can/can.h>
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Public Functions
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: canlib_setsilent
|
* Name: canlib_setsilent
|
||||||
*
|
*
|
||||||
|
@ -43,6 +43,7 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
|
#include <debug.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -107,11 +108,11 @@ static int chat_tokenise(FAR struct chat *priv,
|
|||||||
{
|
{
|
||||||
if (!tok_pos && !quoted && !no_termin)
|
if (!tok_pos && !quoted && !no_termin)
|
||||||
{
|
{
|
||||||
/* a) the first character in the script is a delimiter or
|
/* a) the first character in the script is a delimiter or
|
||||||
* b) the previous character was a delimiter,
|
* b) the previous character was a delimiter,
|
||||||
* and in both cases it is not the empty string token,
|
* and in both cases it is not the empty string token,
|
||||||
* hence skipping.
|
* hence skipping.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -43,6 +43,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <syslog.h>
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
@ -64,7 +65,6 @@
|
|||||||
* Name: show_usage
|
* Name: show_usage
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
static void show_usage(FAR const char *progname, int exitcode) noreturn_function;
|
|
||||||
static void show_usage(FAR const char *progname, int exitcode)
|
static void show_usage(FAR const char *progname, int exitcode)
|
||||||
{
|
{
|
||||||
printf("\nUsage: %s <d|i|n|w|e|c|a|r>\n", progname);
|
printf("\nUsage: %s <d|i|n|w|e|c|a|r>\n", progname);
|
||||||
|
Loading…
Reference in New Issue
Block a user