]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Merge branch 'net-cleanup-bitmaps-printing'
authorPaolo Abeni <pabeni@redhat.com>
Tue, 24 Mar 2026 10:08:20 +0000 (11:08 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 24 Mar 2026 10:08:20 +0000 (11:08 +0100)
commita41a5733e71ac103ca8a045539f7b56050dae75a
tree5ea732518a6fe6174ba86e4d4c1e9504c878671d
parent9d9f21d314933edaf8180839375a47724cc322fc
parentde69301dc2f6d4172c69c3d1c7ceaad7af89b0dc
Merge branch 'net-cleanup-bitmaps-printing'

Yury Norov says:

====================
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/20260219181407.290201-1-ynorov@nvidia.com/
====================

Link: https://patch.msgid.link/20260319201713.941956-1-ynorov@nvidia.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>