summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-12-09 12:22:38 -0700
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-12-09 12:24:43 -0700
commitb1414723ab4171a7ca5fc5e8a5ac7c4eb43331e2 (patch)
tree087f074391f4beccc08626f966d945d0cad60aba
parent13277cbe391c4502422c7203d333caf2b0ba3f11 (diff)
w5500: Quiet down some logging
-rw-r--r--cmd/sbc_harness/config/config.h2
-rw-r--r--libhw/w5500.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/cmd/sbc_harness/config/config.h b/cmd/sbc_harness/config/config.h
index bad0dc4..2b6a6cf 100644
--- a/cmd/sbc_harness/config/config.h
+++ b/cmd/sbc_harness/config/config.h
@@ -27,7 +27,7 @@
#define CONFIG_W5500_DEBUG 1 /* bool */
-#define CONFIG_W5500_LL_DEBUG 1 /* bool */
+#define CONFIG_W5500_LL_DEBUG 0 /* bool */
/* 9P *************************************************************************/
diff --git a/libhw/w5500.c b/libhw/w5500.c
index 3d3e9ae..f36b9cf 100644
--- a/libhw/w5500.c
+++ b/libhw/w5500.c
@@ -229,7 +229,7 @@ static COROUTINE w5500_irq_cr(void *_chip) {
bool had_intr = false;
uint8_t chipintr = w5500ll_read_common_reg(chip->spidev, chip_interrupt);
- debugf("w5500_irq_cr(): chipintr=%"PRIu8, chipintr);
+ n_debugf(W5500_LL, "w5500_irq_cr(): chipintr=%"PRIu8, chipintr);
had_intr = had_intr || (chipintr != 0);
if (chipintr)
w5500ll_write_common_reg(chip->spidev, chip_interrupt, 0xFF);
@@ -238,7 +238,7 @@ static COROUTINE w5500_irq_cr(void *_chip) {
struct _w5500_socket *socket = &chip->sockets[socknum];
uint8_t sockintr = w5500ll_read_sock_reg(chip->spidev, socknum, interrupt);
- debugf("w5500_irq_cr(): sockintr[%"PRIu8"]=%"PRIu8, socknum, sockintr);
+ n_debugf(W5500_LL, "w5500_irq_cr(): sockintr[%"PRIu8"]=%"PRIu8, socknum, sockintr);
had_intr = had_intr || (sockintr != 0);
switch (socket->mode) {