Skip to content

Commit 38c045b

Browse files
committed
[ulog] Rearrange code to adapt Arduino build process
1 parent 63c9b0e commit 38c045b

File tree

6 files changed

+10
-6
lines changed

6 files changed

+10
-6
lines changed

components/utilities/ulog/backend/console_be.c renamed to src/components/utilities/ulog/backend/console_be.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
* 2018-09-04 armink the first version
99
*/
1010

11-
#include <rthw.h>
12-
#include <ulog.h>
11+
#include "include/rthw.h"
12+
#include "../ulog.h"
1313

1414
#ifdef ULOG_BACKEND_USING_CONSOLE
1515

@@ -23,6 +23,10 @@ void ulog_console_backend_output(struct ulog_backend *backend, rt_uint32_t level
2323
const char *log, size_t len)
2424
{
2525
rt_device_t dev = rt_console_get_device();
26+
(void)backend;
27+
(void)level;
28+
(void)tag;
29+
(void)is_raw;
2630

2731
#ifdef RT_USING_DEVICE
2832
if (dev == RT_NULL)

components/utilities/ulog/syslog/syslog.c renamed to src/components/utilities/ulog/syslog/syslog.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
*/
1010

1111
#include <stdarg.h>
12-
#include <ulog.h>
13-
#include <rthw.h>
12+
#include "../ulog.h"
13+
#include "include/rthw.h"
1414
#include "syslog.h"
1515

1616
#ifdef ULOG_OUTPUT_FLOAT
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#include <stdarg.h>
1212
#include "ulog.h"
13-
#include "rthw.h"
13+
#include "include/rthw.h"
1414

1515
#ifdef ULOG_USING_SYSLOG
1616
#include <syslog.h>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#ifndef _ULOG_H_
1212
#define _ULOG_H_
1313

14-
#include <rtthread.h>
14+
#include "include/rtthread.h"
1515
#include "ulog_def.h"
1616

1717
#ifdef __cplusplus

0 commit comments

Comments
 (0)