mgmt: mcumgr: stat: Fix stat_mgmt_list behavior #157577
Annotations
1 error, 1 warning, and 1 notice
Run Compliance Tests
Process completed with exit code 1.
|
check-warns:
ClangFormat.txt#L1
See https://docs.zephyrproject.org/latest/contribute/guidelines.html#clang-format for more details.
You may want to run clang-format on this change:
- ok = zcbor_tstr_put_lit(zse, "rc") &&
- zcbor_int32_put(zse, MGMT_ERR_EOK);
+ ok = zcbor_tstr_put_lit(zse, "rc") && zcbor_int32_put(zse, MGMT_ERR_EOK);
}
if (ok) {
- ok = zcbor_tstr_put_lit(zse, "stat_list") &&
- zcbor_list_start_encode(zse, counter);
+ ok = zcbor_tstr_put_lit(zse, "stat_list") && zcbor_list_start_encode(zse, counter);
File:subsys/mgmt/mcumgr/grp/stat_mgmt/src/stat_mgmt.c
Line:211
|
Run Compliance Tests:
subsys/mgmt/mcumgr/grp/stat_mgmt/src/stat_mgmt.c#L211
subsys/mgmt/mcumgr/grp/stat_mgmt/src/stat_mgmt.c:211
- ok = zcbor_tstr_put_lit(zse, "rc") &&
- zcbor_int32_put(zse, MGMT_ERR_EOK);
+ ok = zcbor_tstr_put_lit(zse, "rc") && zcbor_int32_put(zse, MGMT_ERR_EOK);
}
if (ok) {
- ok = zcbor_tstr_put_lit(zse, "stat_list") &&
- zcbor_list_start_encode(zse, counter);
+ ok = zcbor_tstr_put_lit(zse, "stat_list") && zcbor_list_start_encode(zse, counter);
|
Loading