summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/idevicerestore.c8
1 files 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;
}