diff options
author | Leo Wang <leozwang@google.com> | 2014-08-15 02:47:57 +0000 |
---|---|---|
committer | Leo Wang <leozwang@google.com> | 2014-08-15 02:47:57 +0000 |
commit | 2a0c93a8dd114af34b19fb45bc0fafd1cd4f52c5 (patch) | |
tree | 60ce37ef352a7f8ed67ae1a3b78a8911e31d23c1 /adb/adb_trace.h | |
parent | 8693bc7abd39f9dcd4b73bdd43054de450a45a03 (diff) | |
download | system_core-2a0c93a8dd114af34b19fb45bc0fafd1cd4f52c5.zip system_core-2a0c93a8dd114af34b19fb45bc0fafd1cd4f52c5.tar.gz system_core-2a0c93a8dd114af34b19fb45bc0fafd1cd4f52c5.tar.bz2 |
Revert "Add more debug information."
This reverts commit 8693bc7abd39f9dcd4b73bdd43054de450a45a03.
Change-Id: I7e6df6c155d9a7544c860b21bcb31c4e04d122e7
Diffstat (limited to 'adb/adb_trace.h')
-rw-r--r-- | adb/adb_trace.h | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/adb/adb_trace.h b/adb/adb_trace.h index 6a429b9..8a5d9f8 100644 --- a/adb/adb_trace.h +++ b/adb/adb_trace.h @@ -73,9 +73,8 @@ void adb_trace_init(void); if (ADB_TRACING) { \ int save_errno = errno; \ adb_mutex_lock(&D_lock); \ - fprintf(stderr, "%16s: %5d:%5lu | ", \ - __FUNCTION__, \ - getpid(), pthread_self()); \ + fprintf(stderr, "%s::%s():", \ + __FILE__, __FUNCTION__); \ errno = save_errno; \ fprintf(stderr, __VA_ARGS__ ); \ fflush(stderr); \ @@ -97,16 +96,15 @@ void adb_trace_init(void); } while (0) # define DD(...) \ do { \ - int save_errno = errno; \ - adb_mutex_lock(&D_lock); \ - fprintf(stderr, "%16s: %5d:%5lu | ", \ - __FUNCTION__, \ - getpid(), pthread_self()); \ - errno = save_errno; \ - fprintf(stderr, __VA_ARGS__ ); \ - fflush(stderr); \ - adb_mutex_unlock(&D_lock); \ - errno = save_errno; \ + int save_errno = errno; \ + adb_mutex_lock(&D_lock); \ + fprintf(stderr, "%s::%s():", \ + __FILE__, __FUNCTION__); \ + errno = save_errno; \ + fprintf(stderr, __VA_ARGS__ ); \ + fflush(stderr); \ + adb_mutex_unlock(&D_lock); \ + errno = save_errno; \ } while (0) #else # define D(...) \ |