diff options
author | Nikias Bassen | 2020-06-19 00:20:16 +0200 |
---|---|---|
committer | Nikias Bassen | 2020-06-19 00:20:16 +0200 |
commit | 333eb1aec92f02b0b61f9ec23880861b93d42c60 (patch) | |
tree | 68541446fc252c307fa773ab36cb7fa0d89a1e69 | |
parent | 02aa163b60602caa43db6a2ce9f86b3cbd5806ad (diff) | |
download | libimobiledevice-333eb1aec92f02b0b61f9ec23880861b93d42c60.tar.gz libimobiledevice-333eb1aec92f02b0b61f9ec23880861b93d42c60.tar.bz2 |
idevicesyslog: Print device UDID with connect/disconnect message
-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) return -1; } - fprintf(stdout, "[connected]\n"); + fprintf(stdout, "[connected:%s]\n", udid); fflush(stdout); return 0; @@ -503,7 +503,7 @@ static void device_event_cb(const idevice_event_t* event, void* userdata) } else if (event->event == IDEVICE_DEVICE_REMOVE) { if (syslog && (strcmp(udid, event->udid) == 0)) { stop_logging(); - fprintf(stdout, "[disconnected]\n"); + fprintf(stdout, "[disconnected:%s]\n", udid); if (exit_on_disconnect) { quit_flag++; } |