Skip to contentSkip to conversation

pinctrl: pinctrl-imx: Print the mux_mode field in hex format

PATCH In review Fabio Estevam 3 participants 3 messages Apr 13, 2014 – Apr 22, 2014

Subsystems (2)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/1 pinctrl: pinctrl-imx: Print the mux_mode field in hex format

From: Fabio Estevam <[email protected]>

With debug enabled we get better readability dumps of the mux_mode register if we use hexadecimal format instead:

imx6sl-pinctrl 20e0000.iomuxc: MX6SL_PAD_FEC_REF_CLK: 0x10 0x0001b0a8

---
 drivers/pinctrl/pinctrl-imx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pinctrl/pinctrl-imx.c +1 -1
index e118fb1..a24448e 100644
@@ -491,7 +491,7 @@ static int imx_pinctrl_parse_groups(struct device_node *np,
 			pin->mux_mode |= IOMUXC_CONFIG_SION;
 		pin->config = config & ~IMX_PAD_SION;
 
-		dev_dbg(info->dev, "%s: %d 0x%08lx", info->pins[pin_id].name,
+		dev_dbg(info->dev, "%s: 0x%x 0x%08lx", info->pins[pin_id].name,
 				pin->mux_mode, pin->config);
 	}
 
Signature · 1 line
1.8.3.2