logging: Fixes c++ compile error using LOG_BACKEND_DEFINE
Ordered struct init properties to match declaration order. Compiled and ran on qemu emulator. Fixes #22482 Signed-off-by: Glenn Engel <glenne@engel.org>
This commit is contained in:
parent
89132fe8bd
commit
ebcb6a5e71
1 changed files with 1 additions and 1 deletions
|
@ -76,8 +76,8 @@ extern const struct log_backend __log_backends_end[0];
|
|||
#define LOG_BACKEND_DEFINE(_name, _api, _autostart) \
|
||||
static struct log_backend_control_block UTIL_CAT(backend_cb_, _name) = \
|
||||
{ \
|
||||
.active = false, \
|
||||
.id = 0, \
|
||||
.active = false, \
|
||||
}; \
|
||||
static const Z_STRUCT_SECTION_ITERABLE(log_backend, _name) = \
|
||||
{ \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue