diff options
author | Yabin Cui <yabinc@google.com> | 2015-09-02 17:44:28 -0700 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2015-09-02 20:21:00 -0700 |
commit | 7a3f8d6691b3fbd8014a98de8455dbcfcc9629e4 (patch) | |
tree | 40d5108385c64636f2512ecc675be9b009479722 /adb/daemon | |
parent | 03bbd64aa99bb03bf80a9340750afa96bdb34280 (diff) | |
download | core-7a3f8d6691b3fbd8014a98de8455dbcfcc9629e4.tar.gz core-7a3f8d6691b3fbd8014a98de8455dbcfcc9629e4.tar.bz2 core-7a3f8d6691b3fbd8014a98de8455dbcfcc9629e4.zip |
adb: clean up debug tracing a little.
Always use LOG() for debug tracing.
Remove useless D_lock. I believe it is useless to lock just before and after fprintf.
I verified the log output both on host and on device. The output looks fine to me.
Change-Id: I96ccfe408ff56864361551afe9ad464d197ae104
Diffstat (limited to 'adb/daemon')
-rw-r--r-- | adb/daemon/main.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/adb/daemon/main.cpp b/adb/daemon/main.cpp index 2eba62531..cb0cb3d79 100644 --- a/adb/daemon/main.cpp +++ b/adb/daemon/main.cpp @@ -162,7 +162,7 @@ int adbd_main(int server_port) { PLOG(FATAL) << "Could not setuid"; } - D("Local port disabled\n"); + D("Local port disabled"); } else { if (root_seclabel != nullptr) { if (setcon(root_seclabel) < 0) { @@ -197,7 +197,7 @@ int adbd_main(int server_port) { int port; if (sscanf(prop_port, "%d", &port) == 1 && port > 0) { - printf("using port=%d\n", port); + D("using port=%d", port); // Listen on TCP port specified by service.adb.tcp.port property. local_init(port); } else if (!is_usb) { @@ -205,11 +205,11 @@ int adbd_main(int server_port) { local_init(DEFAULT_ADB_LOCAL_TRANSPORT_PORT); } - D("adbd_main(): pre init_jdwp()\n"); + D("adbd_main(): pre init_jdwp()"); init_jdwp(); - D("adbd_main(): post init_jdwp()\n"); + D("adbd_main(): post init_jdwp()"); - D("Event loop starting\n"); + D("Event loop starting"); fdevent_loop(); return 0; @@ -261,6 +261,6 @@ int main(int argc, char** argv) { adb_trace_init(argv); - D("Handling main()\n"); + D("Handling main()"); return adbd_main(DEFAULT_ADB_PORT); } |