[PATCH] kexec: ppc64: print help to stdout instead of stderr
Srikar Dronamraju
srikar at linux.vnet.ibm.com
Thu Nov 16 22:06:29 PST 2023
* Aditya Gupta <adityag at linux.ibm.com> [2023-11-16 14:11:37]:
> Currently 'kexec --help' on powerpc64 prints the generic help/usage to
> stdout, and the powerpc64 specific options to stderr
>
> That is, if the stdout of 'kexec --help' is redirected to some file,
> some of the help options will not be redirected, and instead printed on
> the terminal/stderr:
>
> [root at machine kexec-tools]# kexec --help > /tmp/out
> --command-line=<Command line> command line to append.
> --append=<Command line> same as --command-line.
> --ramdisk=<filename> Initial RAM disk.
> --initrd=<filename> same as --ramdisk.
> --devicetreeblob=<filename> Specify device tree blob file.
> Not applicable while using
> --kexec-file-syscall.
> --dtb=<filename> same as --devicetreeblob.
> elf support is still broken
> --elf64-core-headers Prepare core headers in ELF64 format
> --dt-no-old-root Do not reuse old kernel root= param.
> while creating flatten device tree.
>
> Fix this inconsistency by writing powerpc64 specific options to stdout,
> similar to the generic 'kexec --help'
>
> With the proposed changes, it is like this (nothing printed to stderr):
>
> [root at machine kexec-tools]# ./build/sbin/kexec --help > /tmp/out
>
> Reported-by: Srikar Dronamraju <srikar at linux.vnet.ibm.com>
> Signed-off-by: Aditya Gupta <adityag at linux.ibm.com>
> ---
Thanks Aditya for looking into this.
--
Thanks and Regards
Srikar Dronamraju
More information about the kexec
mailing list