From ccd3ebe24feb3fa5fa60099144678137b4c8ad6f Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Wed, 16 Jan 2019 03:12:23 +0100 Subject: main: Allow passing ECID in hex or decimal --- src/idevicerestore.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/idevicerestore.c b/src/idevicerestore.c index 41dfa4e..26c720b 100644 --- a/src/idevicerestore.c +++ b/src/idevicerestore.c @@ -78,9 +78,9 @@ void usage(int argc, char* argv[]) { char* name = strrchr(argv[0], '/'); printf("Usage: %s [OPTIONS] FILE\n", (name ? name + 1 : argv[0])); printf("Restore IPSW firmware FILE to an iOS device.\n\n"); - printf(" -i, --ecid ECID\ttarget specific device by its hexadecimal ECID\n"); - printf(" \te.g. 0xaabb123456 or 00000012AABBCCDD\n"); - printf(" -u, --udid UDID\ttarget specific device by its 40-digit device UDID\n"); + printf(" -i, --ecid ECID\ttarget specific device by its ECID\n"); + printf(" \te.g. 0xaabb123456 (hex) or 1234567890 (decimal)\n"); + printf(" -u, --udid UDID\ttarget specific device by its device UDID\n"); printf(" \tNOTE: only works with devices in normal mode.\n"); printf(" -d, --debug\t\tenable communication debugging\n"); printf(" -h, --help\t\tprints usage information\n"); @@ -1094,7 +1094,7 @@ int main(int argc, char* argv[]) { case 'i': if (optarg) { char* tail = NULL; - client->ecid = strtoull(optarg, &tail, 16); + client->ecid = strtoull(optarg, &tail, 0); if (tail && (tail[0] != '\0')) { client->ecid = 0; } -- cgit v1.1-32-gdbae