summaryrefslogtreecommitdiffstats
path: root/tools/idevicesyslog.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2012-03-22 16:07:07 +0100
committerGravatar Martin Szulecki2012-03-22 16:07:07 +0100
commit7457346a7ad7dddc0188cd1cd6fc5920aabfe39a (patch)
tree4d9aa158fc2fb1e05d3349ca8a5ec22207a9a7e4 /tools/idevicesyslog.c
parent0331050438d1bd5824237d13240a766a9b503b55 (diff)
downloadlibimobiledevice-7457346a7ad7dddc0188cd1cd6fc5920aabfe39a.tar.gz
libimobiledevice-7457346a7ad7dddc0188cd1cd6fc5920aabfe39a.tar.bz2
Mass replace UUID by UDID, which is the correct term for it
Diffstat (limited to 'tools/idevicesyslog.c')
-rw-r--r--tools/idevicesyslog.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/idevicesyslog.c b/tools/idevicesyslog.c
index 3fc7922..abaef47 100644
--- a/tools/idevicesyslog.c
+++ b/tools/idevicesyslog.c
@@ -48,9 +48,9 @@ int main(int argc, char *argv[])
48 idevice_t phone = NULL; 48 idevice_t phone = NULL;
49 idevice_error_t ret = IDEVICE_E_UNKNOWN_ERROR; 49 idevice_error_t ret = IDEVICE_E_UNKNOWN_ERROR;
50 int i; 50 int i;
51 char uuid[41]; 51 char udid[41];
52 uint16_t port = 0; 52 uint16_t port = 0;
53 uuid[0] = 0; 53 udid[0] = 0;
54 54
55 signal(SIGINT, clean_exit); 55 signal(SIGINT, clean_exit);
56 signal(SIGTERM, clean_exit); 56 signal(SIGTERM, clean_exit);
@@ -65,13 +65,13 @@ int main(int argc, char *argv[])
65 idevice_set_debug_level(1); 65 idevice_set_debug_level(1);
66 continue; 66 continue;
67 } 67 }
68 else if (!strcmp(argv[i], "-u") || !strcmp(argv[i], "--uuid")) { 68 else if (!strcmp(argv[i], "-u") || !strcmp(argv[i], "--udid")) {
69 i++; 69 i++;
70 if (!argv[i] || (strlen(argv[i]) != 40)) { 70 if (!argv[i] || (strlen(argv[i]) != 40)) {
71 print_usage(argc, argv); 71 print_usage(argc, argv);
72 return 0; 72 return 0;
73 } 73 }
74 strcpy(uuid, argv[i]); 74 strcpy(udid, argv[i]);
75 continue; 75 continue;
76 } 76 }
77 else if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) { 77 else if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
@@ -84,10 +84,10 @@ int main(int argc, char *argv[])
84 } 84 }
85 } 85 }
86 86
87 if (uuid[0] != 0) { 87 if (udid[0] != 0) {
88 ret = idevice_new(&phone, uuid); 88 ret = idevice_new(&phone, udid);
89 if (ret != IDEVICE_E_SUCCESS) { 89 if (ret != IDEVICE_E_SUCCESS) {
90 printf("No device found with uuid %s, is it plugged in?\n", uuid); 90 printf("No device found with udid %s, is it plugged in?\n", udid);
91 return -1; 91 return -1;
92 } 92 }
93 } 93 }
@@ -166,7 +166,7 @@ void print_usage(int argc, char **argv)
166 printf("Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0])); 166 printf("Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0]));
167 printf("Relay syslog of a connected iPhone/iPod Touch.\n\n"); 167 printf("Relay syslog of a connected iPhone/iPod Touch.\n\n");
168 printf(" -d, --debug\t\tenable communication debugging\n"); 168 printf(" -d, --debug\t\tenable communication debugging\n");
169 printf(" -u, --uuid UUID\ttarget specific device by its 40-digit device UUID\n"); 169 printf(" -u, --udid UDID\ttarget specific device by its 40-digit device UDID\n");
170 printf(" -h, --help\t\tprints usage information\n"); 170 printf(" -h, --help\t\tprints usage information\n");
171 printf("\n"); 171 printf("\n");
172} 172}