Log adb executable path

Log the ADB executable path (at the DEBUG level) if it is not the
default one.

PR #5560 <https://github.com/Genymobile/scrcpy/pull/5560>
This commit is contained in:
Romain Vimont 2024-12-01 16:08:03 +01:00
parent 6d0ac3626d
commit dc6c279b1e

View File

@ -31,6 +31,7 @@ bool
sc_adb_init(void) {
adb_executable = sc_get_env("ADB");
if (adb_executable) {
LOGD("Using adb: %s", adb_executable);
return true;
}
@ -49,6 +50,8 @@ sc_adb_init(void) {
// Error already logged
return false;
}
LOGD("Using adb (portable): %s", adb_executable);
#endif
return true;