Fix logic error in explicitly specified dtb versions spotted by gavin.

This commit is contained in:
David Chisnall 2013-01-22 18:12:31 +00:00
parent f89bcdb03b
commit 45688d5d5f

View File

@ -164,7 +164,7 @@ main(int argc, char **argv)
debug_mode = true; debug_mode = true;
break; break;
case 'V': case 'V':
if (string(optarg) == string("17")) if (string(optarg) != string("17"))
{ {
fprintf(stderr, "Unknown output format version: %s\n", optarg); fprintf(stderr, "Unknown output format version: %s\n", optarg);
return EXIT_FAILURE; return EXIT_FAILURE;