diff options
| author | 2020-06-19 00:20:16 +0200 | |
|---|---|---|
| committer | 2020-06-19 00:20:16 +0200 | |
| commit | 333eb1aec92f02b0b61f9ec23880861b93d42c60 (patch) | |
| tree | 68541446fc252c307fa773ab36cb7fa0d89a1e69 /tools/idevicesyslog.c | |
| parent | 02aa163b60602caa43db6a2ce9f86b3cbd5806ad (diff) | |
| download | libimobiledevice-333eb1aec92f02b0b61f9ec23880861b93d42c60.tar.gz libimobiledevice-333eb1aec92f02b0b61f9ec23880861b93d42c60.tar.bz2 | |
idevicesyslog: Print device UDID with connect/disconnect message
Diffstat (limited to 'tools/idevicesyslog.c')
| -rw-r--r-- | tools/idevicesyslog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/idevicesyslog.c b/tools/idevicesyslog.c index 5e9c386..d9b627f 100644 --- a/tools/idevicesyslog.c +++ b/tools/idevicesyslog.c | |||
| @@ -461,7 +461,7 @@ static int start_logging(void) | |||
| 461 | return -1; | 461 | return -1; |
| 462 | } | 462 | } |
| 463 | 463 | ||
| 464 | fprintf(stdout, "[connected]\n"); | 464 | fprintf(stdout, "[connected:%s]\n", udid); |
| 465 | fflush(stdout); | 465 | fflush(stdout); |
| 466 | 466 | ||
| 467 | return 0; | 467 | return 0; |
| @@ -503,7 +503,7 @@ static void device_event_cb(const idevice_event_t* event, void* userdata) | |||
| 503 | } else if (event->event == IDEVICE_DEVICE_REMOVE) { | 503 | } else if (event->event == IDEVICE_DEVICE_REMOVE) { |
| 504 | if (syslog && (strcmp(udid, event->udid) == 0)) { | 504 | if (syslog && (strcmp(udid, event->udid) == 0)) { |
| 505 | stop_logging(); | 505 | stop_logging(); |
| 506 | fprintf(stdout, "[disconnected]\n"); | 506 | fprintf(stdout, "[disconnected:%s]\n", udid); |
| 507 | if (exit_on_disconnect) { | 507 | if (exit_on_disconnect) { |
| 508 | quit_flag++; | 508 | quit_flag++; |
| 509 | } | 509 | } |
