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