]> git.ipfire.org Git - thirdparty/util-linux.git/commit - disk-utils/blockdev.c
treewide: fix newlines when using fputs
authorThomas Weißschuh <thomas@t-8ch.de>
Tue, 23 Jan 2024 19:22:21 +0000 (20:22 +0100)
committerThomas Weißschuh <thomas@t-8ch.de>
Tue, 23 Jan 2024 19:35:03 +0000 (20:35 +0100)
commitf11785b5d50e3440261d01c98d7c580b5ca8975c
tree8823c3d21d42ddac2ced7ce85768c74e24fa16a0
parent7cbf73770efe8baf195eff16c65e14c8ee6866d9
treewide: fix newlines when using fputs

The `fputs()` introduced in #2561 does not automatically include a
trailing newline which the original `puts()` did.
This broke the `--help` output of various utilities.

Changing all format strings to include a newline is not feasible as it
would force all translations to be adapted.

Instead introduce a new helper `fputsln()` that works as expected.
Documentation/boilerplate.c
disk-utils/blockdev.c
disk-utils/mkfs.cramfs.c
include/c.h
misc-utils/pipesz.c
misc-utils/uuidparse.c
misc-utils/wipefs.c
sys-utils/hwclock.c
sys-utils/lsirq.c