From 7d01dd87e833bc5372aaae6c0eb8bc982ac6a419 Mon Sep 17 00:00:00 2001 From: Evan Lojewski Date: Sat, 19 Jun 2021 09:29:21 -0600 Subject: build: Update various support files with codacy recommendations. (#227) --- libs/NCSI/ncsi.c | 2 +- libs/Network/tx.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'libs') 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++) -- cgit v1.2.1