summaryrefslogtreecommitdiffstats
path: root/libs/utils/Static.cpp
diff options
context:
space:
mode:
authorAndy McFadden <fadden@android.com>2011-08-31 07:43:40 -0700
committerAndy McFadden <fadden@android.com>2011-09-07 16:45:03 -0700
commitaefc9cda45adb00ec1cb2c8fbd03c50fd48499fb (patch)
tree716d2961f36d7c83f4a418e255d2a336476be515 /libs/utils/Static.cpp
parent7f739ae68c57435964f69c397ec0cf344d0701a2 (diff)
downloadframeworks_native-aefc9cda45adb00ec1cb2c8fbd03c50fd48499fb.zip
frameworks_native-aefc9cda45adb00ec1cb2c8fbd03c50fd48499fb.tar.gz
frameworks_native-aefc9cda45adb00ec1cb2c8fbd03c50fd48499fb.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/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 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;
}
};