summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2020-06-19 00:20:16 +0200
committerGravatar Nikias Bassen2020-06-19 00:20:16 +0200
commit333eb1aec92f02b0b61f9ec23880861b93d42c60 (patch)
tree68541446fc252c307fa773ab36cb7fa0d89a1e69
parent02aa163b60602caa43db6a2ce9f86b3cbd5806ad (diff)
downloadlibimobiledevice-333eb1aec92f02b0b61f9ec23880861b93d42c60.tar.gz
libimobiledevice-333eb1aec92f02b0b61f9ec23880861b93d42c60.tar.bz2
idevicesyslog: Print device UDID with connect/disconnect message
-rw-r--r--tools/idevicesyslog.c4
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++;
}