logging: Add missing initialization of structure fields

C++ compiliation may generate warning if some fields are not
explicitly initialized. Added explicit initialization to 0.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
Krzysztof Chruscinski 2021-05-20 12:57:41 +02:00 committed by Kumar Gala
commit 8ffc8ff267

View file

@ -176,11 +176,14 @@ enum z_log_msg2_mode {
#define Z_LOG_MSG_DESC_INITIALIZER(_domain_id, _level, _plen, _dlen) \ #define Z_LOG_MSG_DESC_INITIALIZER(_domain_id, _level, _plen, _dlen) \
{ \ { \
.valid = 0, \
.busy = 0, \
.type = Z_LOG_MSG2_LOG, \ .type = Z_LOG_MSG2_LOG, \
.domain = _domain_id, \ .domain = _domain_id, \
.level = _level, \ .level = _level, \
.package_len = _plen, \ .package_len = _plen, \
.data_len = _dlen, \ .data_len = _dlen, \
.reserved = 0, \
} }
/* Messages are aligned to alignment required by cbprintf package. */ /* Messages are aligned to alignment required by cbprintf package. */