[PATCH net-next] net: dsa: microchip: Fix log typo in error path
From: Niklas Söderlund
Date: Wed Jul 22 2026 - 13:58:40 EST
All other log messages in the driver prefix hex values with 0x, add it
in the one missing message. While at it also add the missing opening
parenthesis in the same log message.
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@xxxxxxxxxxxx>
---
drivers/net/dsa/microchip/ksz_common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/dsa/microchip/ksz_common.c b/drivers/net/dsa/microchip/ksz_common.c
index 67ab6ddb9e53..ff4dd51f6cb0 100644
--- a/drivers/net/dsa/microchip/ksz_common.c
+++ b/drivers/net/dsa/microchip/ksz_common.c
@@ -2994,7 +2994,7 @@ static int ksz_switch_detect(struct ksz_device *dev)
break;
default:
dev_err(dev->dev,
- "unsupported switch detected %x)\n", id32);
+ "unsupported switch detected (0x%x)\n", id32);
return -ENODEV;
}
}
--
2.55.0