]> git.ipfire.org Git - thirdparty/util-linux.git/commit
irqtop: use irqtop_puts() for pre-formatted table data
authorKarel Zak <kzak@redhat.com>
Thu, 9 Apr 2026 08:39:52 +0000 (10:39 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 9 Apr 2026 08:39:52 +0000 (10:39 +0200)
commit72c00a41caea69968b39bcf220ff3a3c56e02a8c
tree4b251789934ac249286835603d3d673182628e5d
parente67a2ea47738b76e5cb9ccfe8ce28e18e028d755
irqtop: use irqtop_puts() for pre-formatted table data

Avoid unnecessary printf formatting when outputting pre-formatted
table strings. The new irqtop_puts() writes data directly via
fputs/waddstr without extra buffer allocation, appending a specified
number of trailing newlines.

This also reduces the buffer size requirements for the vw_printw()
slang fallback, which is now only used for the short header line.

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/irqtop.c