libbinder_ndk: use __assert on host
The problem is that the arguments were out of order. I was lazy here
before because binder couldn't actually run on host, but it's different
now with RPC binder.
Bug: email thread "AIDL and host_supported"
Test: bindeRpcTest
Change-Id: I98313004ab1e3dac6833bd326e7a7f997a017a8b
diff --git a/libs/binder/ndk/Android.bp b/libs/binder/ndk/Android.bp
index ee46fcb..4289574 100644
--- a/libs/binder/ndk/Android.bp
+++ b/libs/binder/ndk/Android.bp
@@ -38,7 +38,7 @@
host: {
cflags: [
"-D__INTRODUCED_IN(n)=",
- "-D__assert(a,b,c)=",
+ "-D__assert(a,b,c)=do { syslog(LOG_ERR, a \": \" c); abort(); } while(false)",
// We want all the APIs to be available on the host.
"-D__ANDROID_API__=10000",
],