OSDN Git Service

Simplify notification code in NetlinkHandler.
authorLorenzo Colitti <lorenzo@google.com>
Fri, 25 Oct 2013 10:53:31 +0000 (19:53 +0900)
committerLorenzo Colitti <lorenzo@google.com>
Wed, 20 Nov 2013 01:59:27 +0000 (10:59 +0900)
commit529c28e80203affab5bdf43d9d2ce60440a3bb5d
tree43e266dee6fe8f200d33bfdeb311f68f962e4114
parentf4e55095146e0b9e8fc0da7c5e0bd6212c486899
Simplify notification code in NetlinkHandler.

1. Factor most of the notification code out to a common function.
2. Use vasprintf instead of snprintf so we don't have to worry
   about clipping notifications due to fixed-size message
   buffers.

[Cherry-pick of 0b454ea4abdc8a563af6da58fa37835729220acf]

Bug: 9180552
Change-Id: Idde16ee6dd56d38dab866f0ea678b04d98b3048d
NetlinkHandler.cpp
NetlinkHandler.h