summaryrefslogtreecommitdiffstats
path: root/libs/utils
diff options
context:
space:
mode:
authorAndy McFadden <fadden@android.com>2011-08-31 07:43:40 -0700
committerAlex Ray <aray@google.com>2013-07-30 13:56:57 -0700
commitf71114b6a4e350d389c6cdd314a4cbb970c71f5b (patch)
tree6912466ac3e2bfb480e088b137a011331bb2545c /libs/utils
parent9ee3fc4dc3219bc68f2efdffa38d6dfc158d8961 (diff)
downloadsystem_core-f71114b6a4e350d389c6cdd314a4cbb970c71f5b.zip
system_core-f71114b6a4e350d389c6cdd314a4cbb970c71f5b.tar.gz
system_core-f71114b6a4e350d389c6cdd314a4cbb970c71f5b.tar.bz2
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')
-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 4dfa578..ceca435 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;
}
};