From 333eb1aec92f02b0b61f9ec23880861b93d42c60 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Fri, 19 Jun 2020 00:20:16 +0200 Subject: idevicesyslog: Print device UDID with connect/disconnect message --- tools/idevicesyslog.c | 4 ++-- 1 file 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++; } -- cgit v1.1-32-gdbae