diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-12-30 06:56:32 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-03 05:54:56 +0300 |
commit | bdb421663d936eb9b29c743a668614276cf3b97d (patch) | |
tree | a3c4abc5749265da228c7e73016595c8a48549a9 /drivers/net/ethernet/stmicro/stmmac/enh_desc.c | |
parent | 21602e1a5578925f610155a0bcf056d1ea9de964 (diff) | |
download | linux-bdb421663d936eb9b29c743a668614276cf3b97d.tar.xz |
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>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/enh_desc.c')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/enh_desc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/enh_desc.c b/drivers/net/ethernet/stmicro/stmmac/enh_desc.c index 2a828a312814..b47cb5c4da51 100644 --- a/drivers/net/ethernet/stmicro/stmmac/enh_desc.c +++ b/drivers/net/ethernet/stmicro/stmmac/enh_desc.c @@ -428,7 +428,7 @@ static void enh_desc_display_ring(void *head, unsigned int size, bool rx) u64 x; x = *(u64 *)ep; - pr_info("%d [0x%x]: 0x%x 0x%x 0x%x 0x%x\n", + pr_info("%03d [0x%x]: 0x%x 0x%x 0x%x 0x%x\n", i, (unsigned int)virt_to_phys(ep), (unsigned int)x, (unsigned int)(x >> 32), ep->basic.des2, ep->basic.des3); |