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:
Flavio Ceolin 2018-09-14 10:43:44 -07:00 committed by Anas Nashif
commit 67ca176754
505 changed files with 1463 additions and 1458 deletions

View file

@ -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_ */

View file

@ -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_ */

View file

@ -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_ */

View file

@ -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_ */

View file

@ -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_ */

View file

@ -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_ */

View file

@ -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_ */

View file

@ -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_ */

View file

@ -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_ */