From 6d154c4fe25d1ae0b5dafaae5eff7c0102f3362e Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Wed, 3 Sep 2014 14:19:43 -0500 Subject: Allow toggle of MTP debug Via command line in TWRP: twrp set tw_mtp_debug 1 This will enable debugging for MTP. You will need to disable and re-enable MTP in order to see the debug logging. Change-Id: Ia7bb0c584e10a4322b65ecf80a67ed7ee836b38e --- mtp/twrpMtp.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mtp/twrpMtp.cpp') diff --git a/mtp/twrpMtp.cpp b/mtp/twrpMtp.cpp index ff58f79a7..6fe0ee3e8 100755 --- a/mtp/twrpMtp.cpp +++ b/mtp/twrpMtp.cpp @@ -68,7 +68,9 @@ int main(int argc, char* argv[]) { } #endif //def TWRPMTP -twrpMtp::twrpMtp() { +twrpMtp::twrpMtp(int debug_enabled = 0) { + if (debug_enabled) + MtpDebug::enableDebug(); mtpstorages = new storages; } -- cgit v1.2.3