From d3f8f423d5efabeb60d1da2a59a309149863a846 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 23 May 2021 00:07:14 +0800 Subject: [PATCH] Include debug.h for xerr/xinfo/xwarn caller Signed-off-by: Xiang Xiao --- canutils/canlib/canlib_getbaud.c | 7 ++++++- canutils/canlib/canlib_getloopback.c | 7 ++++++- canutils/canlib/canlib_getsilent.c | 7 ++++++- canutils/canlib/canlib_setbaud.c | 7 ++++++- canutils/canlib/canlib_setloopback.c | 12 +++++++++--- canutils/canlib/canlib_setsilent.c | 7 ++++++- netutils/chat/chat.c | 11 ++++++----- system/setlogmask/setlogmask.c | 2 +- 8 files changed, 46 insertions(+), 14 deletions(-) diff --git a/canutils/canlib/canlib_getbaud.c b/canutils/canlib/canlib_getbaud.c index b26bb80a1..b6690372c 100644 --- a/canutils/canlib/canlib_getbaud.c +++ b/canutils/canlib/canlib_getbaud.c @@ -1,5 +1,5 @@ /**************************************************************************** - * canutils/canlib/canlib_getbaud.c + * apps/canutils/canlib/canlib_getbaud.c * * Copyright (C) 2016 Sebastien Lorquet. All rights reserved. * Author: Sebastien Lorquet @@ -44,9 +44,14 @@ #include #include #include +#include #include #include +/**************************************************************************** + * Public Functions + ****************************************************************************/ + /**************************************************************************** * Name: canlib_getbaud * diff --git a/canutils/canlib/canlib_getloopback.c b/canutils/canlib/canlib_getloopback.c index 30a73a54d..8661ea406 100644 --- a/canutils/canlib/canlib_getloopback.c +++ b/canutils/canlib/canlib_getloopback.c @@ -1,5 +1,5 @@ /**************************************************************************** - * canutils/canlib/canlib_getloopback.c + * apps/canutils/canlib/canlib_getloopback.c * * Copyright (C) 2016 Sebastien Lorquet. All rights reserved. * Author: Sebastien Lorquet @@ -45,9 +45,14 @@ #include #include #include +#include #include #include +/**************************************************************************** + * Public Functions + ****************************************************************************/ + /**************************************************************************** * Name: canlib_getloopback * diff --git a/canutils/canlib/canlib_getsilent.c b/canutils/canlib/canlib_getsilent.c index 71e20f10b..575eb6edb 100644 --- a/canutils/canlib/canlib_getsilent.c +++ b/canutils/canlib/canlib_getsilent.c @@ -1,5 +1,5 @@ /**************************************************************************** - * canutils/canlib/canlib_getsilent.c + * apps/canutils/canlib/canlib_getsilent.c * * Copyright (C) 2016 Sebastien Lorquet. All rights reserved. * Author: Sebastien Lorquet @@ -45,9 +45,14 @@ #include #include #include +#include #include #include +/**************************************************************************** + * Public Functions + ****************************************************************************/ + /**************************************************************************** * Name: canlib_getsilent * diff --git a/canutils/canlib/canlib_setbaud.c b/canutils/canlib/canlib_setbaud.c index fcc17dc20..d77251191 100644 --- a/canutils/canlib/canlib_setbaud.c +++ b/canutils/canlib/canlib_setbaud.c @@ -1,5 +1,5 @@ /**************************************************************************** - * canutils/canlib/canlib_setbaud.c + * apps/canutils/canlib/canlib_setbaud.c * * Copyright (C) 2016 Sebastien Lorquet. All rights reserved. * Author: Sebastien Lorquet @@ -44,9 +44,14 @@ #include #include #include +#include #include #include +/**************************************************************************** + * Public Functions + ****************************************************************************/ + /**************************************************************************** * Name: canlib_setbaud * diff --git a/canutils/canlib/canlib_setloopback.c b/canutils/canlib/canlib_setloopback.c index 2037cf54c..9f651f5d8 100644 --- a/canutils/canlib/canlib_setloopback.c +++ b/canutils/canlib/canlib_setloopback.c @@ -1,5 +1,5 @@ /**************************************************************************** - * canutils/canlib/canlib_setloopback.c + * apps/canutils/canlib/canlib_setloopback.c * * Copyright (C) 2016 Sebastien Lorquet. All rights reserved. * Author: Sebastien Lorquet @@ -45,15 +45,21 @@ #include #include #include +#include #include #include +/**************************************************************************** + * Public Functions + ****************************************************************************/ + /**************************************************************************** * Name: canlib_setloopback * * Description: - * Wrapper for CANIOC_SET_CONNMODES. When loopback mode is enabled, the CAN - * peripheral transmits on the bus, but only receives its own sent messages. + * Wrapper for CANIOC_SET_CONNMODES. When loopback mode is enabled, the + * CAN peripheral transmits on the bus, but only receives its own sent + * messages. * * Input Parameter: * fd - file descriptor of an opened can device diff --git a/canutils/canlib/canlib_setsilent.c b/canutils/canlib/canlib_setsilent.c index 5544caaa8..8dee03aca 100644 --- a/canutils/canlib/canlib_setsilent.c +++ b/canutils/canlib/canlib_setsilent.c @@ -1,5 +1,5 @@ /**************************************************************************** - * canutils/canlib/canlib_setsilent.c + * apps/canutils/canlib/canlib_setsilent.c * * Copyright (C) 2016 Sebastien Lorquet. All rights reserved. * Author: Sebastien Lorquet @@ -45,9 +45,14 @@ #include #include #include +#include #include #include +/**************************************************************************** + * Public Functions + ****************************************************************************/ + /**************************************************************************** * Name: canlib_setsilent * diff --git a/netutils/chat/chat.c b/netutils/chat/chat.c index 2a319f610..c13993d9f 100644 --- a/netutils/chat/chat.c +++ b/netutils/chat/chat.c @@ -43,6 +43,7 @@ #include #include +#include #include #include #include @@ -107,11 +108,11 @@ static int chat_tokenise(FAR struct chat *priv, { if (!tok_pos && !quoted && !no_termin) { - /* a) the first character in the script is a delimiter or - * b) the previous character was a delimiter, - * and in both cases it is not the empty string token, - * hence skipping. - */ + /* a) the first character in the script is a delimiter or + * b) the previous character was a delimiter, + * and in both cases it is not the empty string token, + * hence skipping. + */ return 0; } diff --git a/system/setlogmask/setlogmask.c b/system/setlogmask/setlogmask.c index 7ea22efd4..622e8315e 100644 --- a/system/setlogmask/setlogmask.c +++ b/system/setlogmask/setlogmask.c @@ -43,6 +43,7 @@ #include #include #include +#include /**************************************************************************** * Pre-processor Definitions @@ -64,7 +65,6 @@ * 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) { printf("\nUsage: %s \n", progname);