net: stmmac: Pad ring number with zeroes in display_ring()
authorFlorian Fainelli <f.fainelli@gmail.com>
Sat, 30 Dec 2017 03:56:32 +0000 (19:56 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Jan 2018 02:54:56 +0000 (21:54 -0500)
commitbdb421663d936eb9b29c743a668614276cf3b97d
treea3c4abc5749265da228c7e73016595c8a48549a9
parent21602e1a5578925f610155a0bcf056d1ea9de964
net: stmmac: Pad ring number with zeroes in display_ring()

Make the printing of the ring number consistent and properly aligned by
padding the ring number with up to 3 zeroes, which covers the maximum
ring size. This makes it a lot easier to see outliers in debug prints.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c
drivers/net/ethernet/stmicro/stmmac/enh_desc.c
drivers/net/ethernet/stmicro/stmmac/norm_desc.c