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 10:02 PM, Rob Herring <robh@xxxxxxxxxx> wrote:
> 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

These examples do not have argc == 1.

If 'dtc' is called with no arguments than the application never exits.
--
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