]> git.ipfire.org Git - thirdparty/util-linux.git/commit
chcpu: provide better user feedback
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 15 Sep 2011 06:52:31 +0000 (08:52 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 27 Sep 2011 11:37:50 +0000 (13:37 +0200)
commit5b88ce6a17e1e0e32b8b7c8ebcee4126b52af4b1
treef302b88f1bd614bab769520c6cfddc827f5c71c3
parent25dea0b56595d04d9ef9e1eb554b9047ef12dedd
chcpu: provide better user feedback

Instead of printing error messages like "I/O resource busy" which are
supplied by strerror, give better feedback if the reason of failure
is known.
E.g. taking the last cpu offline cannot succeed, therefore print a
message that gives this "hint".

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
sys-utils/chcpu.c