diff options
author | San Mehat <san@google.com> | 2009-12-24 07:17:09 -0800 |
---|---|---|
committer | San Mehat <san@google.com> | 2009-12-24 07:20:36 -0800 |
commit | d674413ff460afe1da049e54bb7a489132799749 (patch) | |
tree | 9cae3b4cd2a9fdef54b4d1994741ae9b459eca5c /libsysutils | |
parent | 3528f6ba2769abb09ae0a27a9336b96ab0a97225 (diff) | |
download | core-d674413ff460afe1da049e54bb7a489132799749.tar.gz core-d674413ff460afe1da049e54bb7a489132799749.tar.bz2 core-d674413ff460afe1da049e54bb7a489132799749.zip |
sysutils: Add dump() to NetlinkEvent
Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'libsysutils')
-rw-r--r-- | libsysutils/src/NetlinkEvent.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libsysutils/src/NetlinkEvent.cpp b/libsysutils/src/NetlinkEvent.cpp index 5f959a7b6..1550d8318 100644 --- a/libsysutils/src/NetlinkEvent.cpp +++ b/libsysutils/src/NetlinkEvent.cpp @@ -46,6 +46,16 @@ NetlinkEvent::~NetlinkEvent() { } } +void NetlinkEvent::dump() { + int i; + + for (i = 0; i < NL_PARAMS_MAX; i++) { + if (!mParams[i]) + break; + LOGD("NL param '%s'\n", mParams[i]); + } +} + bool NetlinkEvent::decode(char *buffer, int size) { char *s = buffer; char *end; |