summaryrefslogtreecommitdiff
path: root/libs/utils/Static.cpp
diff options
context:
space:
mode:
author Andy McFadden <fadden@android.com> 2011-08-31 07:43:40 -0700
committer Andy McFadden <fadden@android.com> 2011-09-07 16:45:03 -0700
commit3f8cbfeb07a934dd5bc9b16995326639d09c7a0c (patch)
treeb53c860d5d90b082cee48872dba3401015090de9 /libs/utils/Static.cpp
parent38aac047431ea370509f956ad16224b39a71e586 (diff)
Resurrect verbose binder logging
Updated the command name lists, and masked off the additional bits in the command word when doing the name lookup. Made descriptor values easier to grep for and consistent with kernel output (i.e. decimal rather than hex). Attempt to show transaction descriptors as such (they're in a union with a pointer). Also, the writeLines() function in Static was using a no-op logging call to write an iovec. It looks like all callers are using N=1, so I just added a log for the first string. Bug 5155269 Change-Id: I417b8d77da3eb6ee1d2069ba94047210f75738bc
Diffstat (limited to 'libs/utils/Static.cpp')
-rw-r--r--libs/utils/Static.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/utils/Static.cpp b/libs/utils/Static.cpp
index 4dfa57830ce3..ceca43552bc8 100644
--- a/libs/utils/Static.cpp
+++ b/libs/utils/Static.cpp
@@ -56,7 +56,9 @@ public:
protected:
virtual status_t writeLines(const struct iovec& vec, size_t N)
{
- android_writevLog(&vec, N);
+ //android_writevLog(&vec, N); <-- this is now a no-op
+ if (N != 1) LOGI("WARNING: writeLines N=%d\n", N);
+ LOGI("%.*s", vec.iov_len, (const char*) vec.iov_base);
return NO_ERROR;
}
};