Fix native stats_event logging
pass the byte array pointer; not the reference to the pointer.
Also turn on new socket protocol.
Bug: 148909969
Bug: 143979391
Test: m
Test: fastboot flashall
Test: atest android.cts.statsd.atom.UidAtomTests#testLmkKillOccurred
Test: atest LibStatsPullTests
Test: atest GtsStatsdHostTestCases
Change-Id: If7abae5cadb036555540d1b9b5e7f2cabe99beb8
diff --git a/libstats/socket/stats_event.c b/libstats/socket/stats_event.c
index 5f77558..a26ac2d 100644
--- a/libstats/socket/stats_event.c
+++ b/libstats/socket/stats_event.c
@@ -324,5 +324,5 @@
int AStatsEvent_write(AStatsEvent* event) {
AStatsEvent_build(event);
- return write_buffer_to_statsd(&event->buf, event->size, event->atomId);
-}
\ No newline at end of file
+ return write_buffer_to_statsd(event->buf, event->size, event->atomId);
+}