From 7ff3385719244906c1da9fe41d307347c175f226 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Wed, 4 Dec 2019 11:15:47 +0100 Subject: tools: Parse and print PWND string in irecovery device info output if present --- tools/irecovery.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tools') diff --git a/tools/irecovery.c b/tools/irecovery.c index 7ea331d..6ee89b0 100644 --- a/tools/irecovery.c +++ b/tools/irecovery.c @@ -158,6 +158,14 @@ static void print_device_info(irecv_client_t client) printf("N/A"); } printf("\n"); + char* p = strstr(devinfo->serial_string, "PWND:["); + if (p) { + p+=6; + char* pend = strchr(p, ']'); + if (pend) { + printf("PWND: %.*s\n", (int)(pend-p), p); + } + } } else { printf("Could not get device info?!\n"); } -- cgit v1.1-32-gdbae