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:
Glenn Engel 2020-02-04 16:52:53 -08:00 committed by Johan Hedberg
commit ebcb6a5e71

View file

@ -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) = \
{ \