Skip to content

net: cleanup bitmaps printing

Yury Norov lkml netdev 3 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyApplied 2/2
  2. v1 posting 2/25 patches 9 repliesSuperseded
  3. v1 posting 1/22 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- fix copy-paste error in print_npa_qsize() (Simon);
- fix typo in #1 subject (Jakub).

Patches in v2 All 2 applied

#Subject and filesSizeRepliesApplied
1/2octeontx2-af: simplify rvu_debugfsdrivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c+5 -230 repliesApplied
2/2net-sysfs: switch xps_queue_show() to sysfs_emit()net/core/net-sysfs.c+1 -10 repliesApplied

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchThomas WeißschuhSimon Horman
SeriesR-b
1/2
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] net: cleanup bitmaps printing

Bitmap API has a bitmap_print_to_pagebuf() function that is intended to print bitmap into a human readable format, making sure that the output string will not get big enough to cross the current page limit.

Some drivers use this function immediately before passing the result to scnprintf() with no modification. This is useless because scnprintf(), and helpers based on it like seq_pritf() and sysfs_emit(), take care of not overflowing the buffer by itself, and perfectly print bitmaps with "%*pb[l]".

v1: https://lore.kernel.org/all/[email protected]/
v2:
- fix copy-paste error in print_npa_qsize() (Simon);
- fix typo in #1 subject (Jakub).

Yury Norov (2):
octeontx2-af: siplify rvu_debugfs
net-sysfs: switch xps_queue_show() to sysfs_emit()

 .../marvell/octeontx2/af/rvu_debugfs.c        | 28 ++++---------------
 net/core/net-sysfs.c                          |  2 +-
 2 files changed, 6 insertions(+), 24 deletions(-)
Signature · 1 line
2.43.0