dtc: Change exit code for usage message
If dtc's command line arguments are invalid, it prints a usage message and returns exit code 2. That's the same exit code as for a failed check, which is potentially confusing if running dtc from an automated harness. Therefore this patch changes the usage exit code to 3.
Signed-off-by David Gibson <[email protected]>
dtc.c +1 -1
@@ -106,7 +106,7 @@ static void __attribute__ ((noreturn))fprintf (stderr,"\t\tForce - try to produce output even if the input tree has errors\n" );fprintf (stderr,"\t-v\n" );fprintf (stderr,"\t\tPrint DTC version and exit\n" ); -exit (2 ); +exit (3 ); }int main (int argc,char *argv[])
Signature · 4 lines
David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson