[PATCH net-next] net: dsa: microchip: Fix log typo in error path

Niklas Söderlund posted 1 patch 2 days, 4 hours ago
drivers/net/dsa/microchip/ksz_common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH net-next] net: dsa: microchip: Fix log typo in error path
Posted by Niklas Söderlund 2 days, 4 hours ago
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@ragnatech.se>
---
 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

Re: [PATCH net-next] net: dsa: microchip: Fix log typo in error path
Posted by Andrew Lunn 2 days, 3 hours ago
On Wed, Jul 22, 2026 at 07:48:53PM +0200, Niklas Söderlund wrote:
> 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@ragnatech.se>

Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew