Commit 0b5c25e8ac3a60bd01a52ca7405ba96aec8c16be
Committed by
David S. Miller
1 parent
8ccef431a2
Exists in
master
and in
7 other branches
irttp: Print device parameters and statistics as unsigned
Device statistics have type unsigned long and several of the device-specific parameters printed here have type __u32. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 1 changed file with 7 additions and 7 deletions Side-by-side Diff
net/irda/irttp.c
... | ... | @@ -1853,23 +1853,23 @@ |
1853 | 1853 | self->remote_credit); |
1854 | 1854 | seq_printf(seq, "send credit: %d\n", |
1855 | 1855 | self->send_credit); |
1856 | - seq_printf(seq, " tx packets: %ld, ", | |
1856 | + seq_printf(seq, " tx packets: %lu, ", | |
1857 | 1857 | self->stats.tx_packets); |
1858 | - seq_printf(seq, "rx packets: %ld, ", | |
1858 | + seq_printf(seq, "rx packets: %lu, ", | |
1859 | 1859 | self->stats.rx_packets); |
1860 | - seq_printf(seq, "tx_queue len: %d ", | |
1860 | + seq_printf(seq, "tx_queue len: %u ", | |
1861 | 1861 | skb_queue_len(&self->tx_queue)); |
1862 | - seq_printf(seq, "rx_queue len: %d\n", | |
1862 | + seq_printf(seq, "rx_queue len: %u\n", | |
1863 | 1863 | skb_queue_len(&self->rx_queue)); |
1864 | 1864 | seq_printf(seq, " tx_sdu_busy: %s, ", |
1865 | 1865 | self->tx_sdu_busy? "TRUE":"FALSE"); |
1866 | 1866 | seq_printf(seq, "rx_sdu_busy: %s\n", |
1867 | 1867 | self->rx_sdu_busy? "TRUE":"FALSE"); |
1868 | - seq_printf(seq, " max_seg_size: %d, ", | |
1868 | + seq_printf(seq, " max_seg_size: %u, ", | |
1869 | 1869 | self->max_seg_size); |
1870 | - seq_printf(seq, "tx_max_sdu_size: %d, ", | |
1870 | + seq_printf(seq, "tx_max_sdu_size: %u, ", | |
1871 | 1871 | self->tx_max_sdu_size); |
1872 | - seq_printf(seq, "rx_max_sdu_size: %d\n", | |
1872 | + seq_printf(seq, "rx_max_sdu_size: %u\n", | |
1873 | 1873 | self->rx_max_sdu_size); |
1874 | 1874 | |
1875 | 1875 | seq_printf(seq, " Used by (%s)\n\n", |