headers: Fix headers across the project
Any word started with underscore followed by and uppercase letter or a second underscore is a reserved word according with C99. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
a7fffa9e00
commit
67ca176754
505 changed files with 1463 additions and 1458 deletions
|
@ -4,8 +4,8 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifndef LOG_H_
|
||||
#define LOG_H_
|
||||
#ifndef ZEPHYR_INCLUDE_LOGGING_LOG_H_
|
||||
#define ZEPHYR_INCLUDE_LOGGING_LOG_H_
|
||||
|
||||
#include <logging/log_instance.h>
|
||||
#include <logging/log_core.h>
|
||||
|
@ -362,4 +362,4 @@ int log_printk(const char *fmt, va_list ap);
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif /* LOG_H_ */
|
||||
#endif /* ZEPHYR_INCLUDE_LOGGING_LOG_H_ */
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#ifndef LOG_BACKEND_H
|
||||
#define LOG_BACKEND_H
|
||||
#ifndef ZEPHYR_INCLUDE_LOGGING_LOG_BACKEND_H_
|
||||
#define ZEPHYR_INCLUDE_LOGGING_LOG_BACKEND_H_
|
||||
|
||||
#include <logging/log_msg.h>
|
||||
#include <assert.h>
|
||||
|
@ -199,4 +199,4 @@ static inline bool log_backend_is_active(
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif /* LOG_BACKEND_H */
|
||||
#endif /* ZEPHYR_INCLUDE_LOGGING_LOG_BACKEND_H_ */
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#ifndef LOG_BACKEND_UART_H
|
||||
#define LOG_BACKEND_UART_H
|
||||
#ifndef ZEPHYR_INCLUDE_LOGGING_LOG_BACKEND_UART_H_
|
||||
#define ZEPHYR_INCLUDE_LOGGING_LOG_BACKEND_UART_H_
|
||||
|
||||
#include <logging/log_backend.h>
|
||||
|
||||
|
@ -28,4 +28,4 @@ extern const struct log_backend_api log_backend_uart_api;
|
|||
|
||||
void log_backend_uart_init(void);
|
||||
|
||||
#endif /* LOG_BACKEND_UART_H */
|
||||
#endif /* ZEPHYR_INCLUDE_LOGGING_LOG_BACKEND_UART_H_ */
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#ifndef LOG_FRONTEND_H
|
||||
#define LOG_FRONTEND_H
|
||||
#ifndef ZEPHYR_INCLUDE_LOGGING_LOG_CORE_H_
|
||||
#define ZEPHYR_INCLUDE_LOGGING_LOG_CORE_H_
|
||||
|
||||
#include <logging/log_msg.h>
|
||||
#include <logging/log_instance.h>
|
||||
|
@ -475,4 +475,4 @@ void log_generic(struct log_msg_ids src_level, const char *fmt, va_list ap);
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif /* LOG_FRONTEND_H */
|
||||
#endif /* ZEPHYR_INCLUDE_LOGGING_LOG_CORE_H_ */
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#ifndef LOG_CTRL_H
|
||||
#define LOG_CTRL_H
|
||||
#ifndef ZEPHYR_INCLUDE_LOGGING_LOG_CTRL_H_
|
||||
#define ZEPHYR_INCLUDE_LOGGING_LOG_CTRL_H_
|
||||
|
||||
#include <logging/log_backend.h>
|
||||
|
||||
|
@ -180,4 +180,4 @@ void log_backend_disable(struct log_backend const *const backend);
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif /* LOG_CTRL_H */
|
||||
#endif /* ZEPHYR_INCLUDE_LOGGING_LOG_CTRL_H_ */
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#ifndef LOG_INSTANCE_H
|
||||
#define LOG_INSTANCE_H
|
||||
#ifndef ZEPHYR_INCLUDE_LOGGING_LOG_INSTANCE_H_
|
||||
#define ZEPHYR_INCLUDE_LOGGING_LOG_INSTANCE_H_
|
||||
|
||||
#include <zephyr/types.h>
|
||||
|
||||
|
@ -106,4 +106,4 @@ struct log_source_dynamic_data {
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif /* LOG_INSTANCE_H */
|
||||
#endif /* ZEPHYR_INCLUDE_LOGGING_LOG_INSTANCE_H_ */
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#ifndef LOG_MSG_H
|
||||
#define LOG_MSG_H
|
||||
#ifndef ZEPHYR_INCLUDE_LOGGING_LOG_MSG_H_
|
||||
#define ZEPHYR_INCLUDE_LOGGING_LOG_MSG_H_
|
||||
|
||||
#include <kernel.h>
|
||||
#include <atomic.h>
|
||||
|
@ -522,4 +522,4 @@ struct log_msg *log_msg_create_n(const char *str,
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif /* LOG_MSG_H */
|
||||
#endif /* ZEPHYR_INCLUDE_LOGGING_LOG_MSG_H_ */
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#ifndef LOG_OUTPUT_H
|
||||
#define LOG_OUTPUT_H
|
||||
#ifndef ZEPHYR_INCLUDE_LOGGING_LOG_OUTPUT_H_
|
||||
#define ZEPHYR_INCLUDE_LOGGING_LOG_OUTPUT_H_
|
||||
|
||||
#include <logging/log_msg.h>
|
||||
|
||||
|
@ -114,4 +114,4 @@ void log_output_timestamp_freq_set(u32_t freq);
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif /* LOG_OUTPUT_H */
|
||||
#endif /* ZEPHYR_INCLUDE_LOGGING_LOG_OUTPUT_H_ */
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
/** @file sys_log.h
|
||||
* @brief Logging macros.
|
||||
*/
|
||||
#ifndef __SYS_LOG_H
|
||||
#define __SYS_LOG_H
|
||||
#ifndef ZEPHYR_INCLUDE_LOGGING_SYS_LOG_H_
|
||||
#define ZEPHYR_INCLUDE_LOGGING_SYS_LOG_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -190,4 +190,4 @@ void syslog_hook_install(void (*hook)(const char *, ...));
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif /* __SYS_LOG_H */
|
||||
#endif /* ZEPHYR_INCLUDE_LOGGING_SYS_LOG_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue