]> git.ipfire.org Git - thirdparty/util-linux.git/commit
dmesg: add replace_time_fmt() and replace_delta_fmt() helpers
authorKarel Zak <kzak@redhat.com>
Thu, 12 Mar 2026 12:04:35 +0000 (13:04 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 12 Mar 2026 12:04:35 +0000 (13:04 +0100)
commita2a8c7ad667aff5e70871ccbdd1cd0502f3fd49e
treee72135f9c8979ef133cbae64ff8c0187db0123de
parent588d2be090127355021dad23bf2a635c340e68d7
dmesg: add replace_time_fmt() and replace_delta_fmt() helpers

Introduce replace_time_fmt() to replace one time format with another
in the format list, and replace_delta_fmt() which combines
exclude_time_fmt() + replace_time_fmt() into a single call.

This deduplicates the for-loop pattern repeated in the delta
merging post-processing.

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