Re: [PATCH] dtc: Show the usage text if no parameter is passed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Wed, Oct 18, 2017 at 6:28 PM, Fabio Estevam <festevam@xxxxxxxxx> wrote:
> From: Fabio Estevam <fabio.estevam@xxxxxxx>
>
> When dtc is called without any argument the application hangs forever.
>
> Instead of hanging, print the usage and exit.

I think it is valid to do:
dtc < in > out

This doesn't hang:
$ dtc < /dev/null
Error: <stdin>:0.0 syntax error
FATAL ERROR: Unable to parse input tree

The help though isn't clear that input file is optional.

Rob
--
To unsubscribe from this list: send the line "unsubscribe devicetree-compiler" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux