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:
parent
0388ebb6f6
commit
8ffc8ff267
1 changed files with 3 additions and 0 deletions
|
@ -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. */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue