]> git.ipfire.org Git - thirdparty/util-linux.git/commit
chmem: do not word a configuration failure as an instruction to the user
authorBenno Schulenberg <bensberg@telfort.nl>
Tue, 9 Dec 2025 15:02:21 +0000 (16:02 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 17 Dec 2025 10:46:30 +0000 (11:46 +0100)
commit0710b8ed830bbf8d07b6a196811fe15e24d0182c
tree7bb6c8ee729372bf65dd44c4d8f82ca3c1659d40
parent263c14f5db070c4b9b4f64fe7dbdf3a8ca4b745b
chmem: do not word a configuration failure as an instruction to the user

When the current machine does not support configuring/deconfiguring
memory, simply report that it cannot be done, instead of seemingly
telling the user to skip the configuring/deconfiguring.

Also, there is no need to mention `chmem` in the message: mentioning
just the recommended option (-e or -d) is enough.  Also, consistently
terminate all four messages with a period.

This improves upon commit ab2e709600 ("chmem: improve messages").

CC: Sumanth Korikkar <sumanthk@linux.ibm.com>
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
sys-utils/chmem.c