diff options
author | Evan Lojewski <github@meklort.com> | 2021-06-19 09:29:21 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-19 09:29:21 -0600 |
commit | 7d01dd87e833bc5372aaae6c0eb8bc982ac6a419 (patch) | |
tree | 4e0615838684ca95bbe4e4d276f12fb2cfb25f57 /libs | |
parent | 23590ad82730c9304cc58f5e1a649ab909e1cf28 (diff) | |
download | bcm5719-ortega-7d01dd87e833bc5372aaae6c0eb8bc982ac6a419.tar.gz bcm5719-ortega-7d01dd87e833bc5372aaae6c0eb8bc982ac6a419.zip |
build: Update various support files with codacy recommendations. (#227)
Diffstat (limited to 'libs')
-rw-r--r-- | libs/NCSI/ncsi.c | 2 | ||||
-rw-r--r-- | libs/Network/tx.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libs/NCSI/ncsi.c b/libs/NCSI/ncsi.c index 6aa4a44..fe708fb 100644 --- a/libs/NCSI/ncsi.c +++ b/libs/NCSI/ncsi.c @@ -724,7 +724,7 @@ void reloadChannel(unsigned int ch, reload_type_t reset_phy) uint16_t high = (uint16_t)port->shm_channel->NcsiChannelMac0High.r32; Network_SetMACAddr(port, high, low, /* TBD */ 0, true); - printf("[ch %d] Reusing MAC: 0x%02X%04X\n", ch, high, low); + printf("[ch %u] Reusing MAC: 0x%02X%04X\n", ch, high, low); Network_InitPort(gPackageState.port[ch], reset_phy); } diff --git a/libs/Network/tx.c b/libs/Network/tx.c index 67ceaf0..d626d98 100644 --- a/libs/Network/tx.c +++ b/libs/Network/tx.c @@ -401,7 +401,7 @@ static uint32_t inline Network_TX_initAdditionalPassthroughBlock(RegTX_PORTOut_t static void drainPassthroughBytes(uint32_t bytes) { - printf("Dropping %d bytes\n", bytes); + printf("Dropping %u bytes\n", bytes); // Drain any passthrough bytes to ensure that the NCSI input buffers are not locked up. int num_words = DIVIDE_RND_UP(bytes, sizeof(uint32_t)) + 1; // +1 for FCS word. for (int i = 0; i < num_words; i++) |