Skip to content

Commit

Permalink
sys/log: Fix style check
Browse files Browse the repository at this point in the history
  • Loading branch information
vrahane committed Jun 11, 2024
1 parent 8333460 commit 4760b88
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion hw/mcu/native/src/hal_flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ static int
flash_native_write_internal(uint32_t address, const void *src, uint32_t length,
int allow_overwrite)
{
static uint8_t buf[256];
uint8_t buf[256] = {0};
uint32_t cur;
uint32_t end;
int chunk_sz;
Expand Down
4 changes: 4 additions & 0 deletions sys/log/full/selftest/fcb2_align1_imghash/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ syscfg.vals:

# The mbuf append tests allocate lots of mbufs; ensure no exhaustion.
MSYS_1_BLOCK_COUNT: 1000
LOG_FLAGS_IMAGE_HASH: 1
IMGMGR_DUMMY_HDR: 1
LOG_MGMT: 0
IMG_MGMT: 0
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@
syscfg.vals:
LOG_FCB2: 1
MCU_FLASH_MIN_WRITE_SIZE: 1
LOG_FLAGS_IMAGE_HASH: 1
LOG_FLAGS_TLV_SUPPORT: 1
LOG_TLV_NUM_ENTRIES: 1

# The mbuf append tests allocate lots of mbufs; ensure no exhaustion.
MSYS_1_BLOCK_COUNT: 1000
LOG_FLAGS_IMAGE_HASH: 1
LOG_FLAGS_TLV_SUPPORT: 1
LOG_TLV_NUM_ENTRIES: 1
IMGMGR_DUMMY_HDR: 1
LOG_MGMT: 0
IMG_MGMT: 0
8 changes: 4 additions & 4 deletions sys/log/full/selftest/util/src/log_test_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ struct dummy_log dummy_log = {
.ue_etype = 3,
.ue_flags = 0
#if MYNEWT_VAL(LOG_FLAGS_IMAGE_HASH)
| LOG_FLAGS_IMG_HASH
| LOG_FLAGS_IMG_HASH
#endif
#if MYNEWT_VAL(LOG_FLAGS_TLV_SUPPORT)
| LOG_FLAGS_TLV_SUPPORT
| LOG_FLAGS_TLV_SUPPORT
#endif
,
.ue_etype = 0,
Expand All @@ -72,8 +72,8 @@ struct dummy_log dummy_log = {
.ue_num_entries = 5
},
.tlv = {
.tag = LOG_TLV_NUM_ENTRIES,
.len = LOG_NUM_ENTRIES_SIZE
.tag = LOG_TLV_NUM_ENTRIES,
.len = LOG_NUM_ENTRIES_SIZE
},
.num_entries = 0,
};
Expand Down
1 change: 0 additions & 1 deletion sys/log/full/src/log_fcb2.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,6 @@ log_fcb2_append_mbuf_body(struct log *log, const struct log_entry_hdr *hdr,
return rc;
}
len += LOG_NUM_ENTRIES_SIZE;
loc.fe_data_off += len;
log->l_num_entries++;
#endif
}
Expand Down

0 comments on commit 4760b88

Please sign in to comment.