net: macb: fix error format in dev_err()
authorLuca Ceresoli <luca@lucaceresoli.net>
Tue, 14 May 2019 13:23:07 +0000 (15:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 May 2019 22:41:15 +0000 (15:41 -0700)
commitf413cbb332a0b5251a790f396d0eb4ebcade5dec
tree67a2f1010d5f3e57ef5db9673a5bece0c6138ed4
parentfeadc4b6cf42a53a8a93c918a569a0b7e62bd350
net: macb: fix error format in dev_err()

Errors are negative numbers. Using %u shows them as very large positive
numbers such as 4294967277 that don't make sense. Use the %d format
instead, and get a much nicer -19.

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Fixes: b48e0bab142f ("net: macb: Migrate to devm clock interface")
Fixes: 93b31f48b3ba ("net/macb: unify clock management")
Fixes: 421d9df0628b ("net/macb: merge at91_ether driver into macb driver")
Fixes: aead88bd0e99 ("net: ethernet: macb: Add support for rx_clk")
Fixes: f5473d1d44e4 ("net: macb: Support clock management for tsu_clk")
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb_main.c