Include debug.h for xerr/xinfo/xwarn caller
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
98de0d6a68
commit
82ed7bf5b1
@ -43,6 +43,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
|
|
||||||
|
#include <debug.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
@ -251,6 +252,7 @@ static int chat_parse_args(FAR struct chat_app* priv)
|
|||||||
switch (priv->argv[i][1])
|
switch (priv->argv[i][1])
|
||||||
{
|
{
|
||||||
case 'd':
|
case 'd':
|
||||||
|
|
||||||
/* set the TTY device node */
|
/* set the TTY device node */
|
||||||
|
|
||||||
strncpy(priv->tty,
|
strncpy(priv->tty,
|
||||||
|
@ -43,6 +43,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
|
|
||||||
|
#include <debug.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
@ -124,7 +125,8 @@ static int make_nonblock(int fd)
|
|||||||
|
|
||||||
static int ubloxmodem_open_tty(void)
|
static int ubloxmodem_open_tty(void)
|
||||||
{
|
{
|
||||||
int fd, ret;
|
int fd;
|
||||||
|
int ret;
|
||||||
|
|
||||||
fd = open(CONFIG_SYSTEM_UBLOXMODEM_TTY_DEVNODE, O_RDWR);
|
fd = open(CONFIG_SYSTEM_UBLOXMODEM_TTY_DEVNODE, O_RDWR);
|
||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user