From fe6e9acb36298a19f2e667ace724b249a04a7f30 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Tue, 4 Jul 2023 18:20:23 +0200 Subject: [PATCH] Log device selection at INFO level The selected device should be logged by default. --- app/src/adb/adb.c | 4 ++-- app/src/usb/scrcpy_otg.c | 4 ---- app/src/usb/usb.c | 4 ++-- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/app/src/adb/adb.c b/app/src/adb/adb.c index e8775a01..6bc6dd62 100644 --- a/app/src/adb/adb.c +++ b/app/src/adb/adb.c @@ -628,8 +628,8 @@ sc_adb_select_device(struct sc_intr *intr, return false; } - LOGD("ADB device found:"); - sc_adb_devices_log(SC_LOG_LEVEL_DEBUG, vec.data, vec.size); + LOGI("ADB device found:"); + sc_adb_devices_log(SC_LOG_LEVEL_INFO, vec.data, vec.size); // Move devics into out_device (do not destroy device) sc_adb_device_move(out_device, device); diff --git a/app/src/usb/scrcpy_otg.c b/app/src/usb/scrcpy_otg.c index 35d8d4cc..6a7fd79b 100644 --- a/app/src/usb/scrcpy_otg.c +++ b/app/src/usb/scrcpy_otg.c @@ -105,10 +105,6 @@ scrcpy_otg(struct scrcpy_options *options) { usb_device_initialized = true; - LOGI("USB device: %s (%04x:%04x) %s %s", usb_device.serial, - (unsigned) usb_device.vid, (unsigned) usb_device.pid, - usb_device.manufacturer, usb_device.product); - ok = sc_usb_connect(&s->usb, usb_device.device, &cbs, NULL); if (!ok) { goto end; diff --git a/app/src/usb/usb.c b/app/src/usb/usb.c index 190a4108..310ed5d9 100644 --- a/app/src/usb/usb.c +++ b/app/src/usb/usb.c @@ -213,8 +213,8 @@ sc_usb_select_device(struct sc_usb *usb, const char *serial, assert(sel_count == 1); // sel_idx is valid only if sel_count == 1 struct sc_usb_device *device = &vec.data[sel_idx]; - LOGD("USB device found:"); - sc_usb_devices_log(SC_LOG_LEVEL_DEBUG, vec.data, vec.size); + LOGI("USB device found:"); + sc_usb_devices_log(SC_LOG_LEVEL_INFO, vec.data, vec.size); // Move device into out_device (do not destroy device) sc_usb_device_move(out_device, device);