diff options
Diffstat (limited to 'tools/idevicediagnostics.c')
| -rw-r--r-- | tools/idevicediagnostics.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/idevicediagnostics.c b/tools/idevicediagnostics.c index 66e192f..8c32854 100644 --- a/tools/idevicediagnostics.c +++ b/tools/idevicediagnostics.c | |||
| @@ -79,7 +79,7 @@ int main(int argc, char **argv) | |||
| 79 | } | 79 | } |
| 80 | else if (!strcmp(argv[i], "-u") || !strcmp(argv[i], "--udid")) { | 80 | else if (!strcmp(argv[i], "-u") || !strcmp(argv[i], "--udid")) { |
| 81 | i++; | 81 | i++; |
| 82 | if (!argv[i] || (strlen(argv[i]) != 40)) { | 82 | if (!argv[i] || !*argv[i]) { |
| 83 | print_usage(argc, argv); | 83 | print_usage(argc, argv); |
| 84 | result = 0; | 84 | result = 0; |
| 85 | goto cleanup; | 85 | goto cleanup; |
| @@ -318,7 +318,7 @@ void print_usage(int argc, char **argv) | |||
| 318 | printf(" sleep\t\t\t\tput device into sleep mode (disconnects from host)\n\n"); | 318 | printf(" sleep\t\t\t\tput device into sleep mode (disconnects from host)\n\n"); |
| 319 | printf(" The following OPTIONS are accepted:\n"); | 319 | printf(" The following OPTIONS are accepted:\n"); |
| 320 | printf(" -d, --debug\t\tenable communication debugging\n"); | 320 | printf(" -d, --debug\t\tenable communication debugging\n"); |
| 321 | printf(" -u, --udid UDID\ttarget specific device by its 40-digit device UDID\n"); | 321 | printf(" -u, --udid UDID\ttarget specific device by UDID\n"); |
| 322 | printf(" -h, --help\t\tprints usage information\n"); | 322 | printf(" -h, --help\t\tprints usage information\n"); |
| 323 | printf("\n"); | 323 | printf("\n"); |
| 324 | printf("Homepage: <" PACKAGE_URL ">\n"); | 324 | printf("Homepage: <" PACKAGE_URL ">\n"); |
