On Thu, Nov 16, 2023 at 02:11:37PM +0530, Aditya Gupta wrote: > 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@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@machine kexec-tools]# ./build/sbin/kexec --help > /tmp/out > > Reported-by: Srikar Dronamraju <srikar@xxxxxxxxxxxxxxxxxx> > Signed-off-by: Aditya Gupta <adityag@xxxxxxxxxxxxx> Thanks Aditya, applied. _______________________________________________ kexec mailing list kexec@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/kexec