Commit 551c9aff authored by Vivek Goyal's avatar Vivek Goyal Committed by Simon Horman
Browse files

Return error code in case of invalid command line option



Currently kexec returns success even if an invalid command line option
is encountered. Kexec currently prints usage message and then returns
0. That's not right. It is an error and error code 1 should be returned.

Due to this wrapper script thinks that kdump succeeded but that's not
the case.

Signed-off-by: default avatarVivek Goyal <vgoyal@redhat.com>
Signed-off-by: default avatarSimon Horman <horms@verge.net.au>
parent 45b33eb2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment