OSDN Git Service

service: Update HAL call for arguments
authorMarie Janssen <jamuraa@google.com>
Tue, 12 Jan 2016 19:14:24 +0000 (11:14 -0800)
committerMarie Janssen <jamuraa@google.com>
Tue, 26 Jan 2016 20:14:34 +0000 (20:14 +0000)
The HAL now takes an additional argument for dumpsys arguments.

Change-Id: I286149e4d86ea50c4830a9f6d32e1d57025d01a7
(cherry picked from commit 802c8879cbf1d6490aa312a986ac199b84415cec)

btif/src/bluetooth.c
service/ipc/binder/bluetooth_binder_server.cpp

index 160a8d3..630766e 100644 (file)
@@ -321,7 +321,7 @@ static int read_energy_info()
     return BT_STATUS_SUCCESS;
 }
 
-static void dump(int fd)
+static void dump(int fd, UNUSED_ATTR const char **arguments)
 {
     btif_debug_dump(fd);
     alarm_debug_dump(fd);
index b3579ff..7b216ca 100644 (file)
@@ -167,7 +167,7 @@ android::status_t BluetoothBinderServer::dump(int fd, const android::Vector<andr
   }
   // TODO (jamuraa): enumerate profiles and dump profile information
   const bt_interface_t *iface = bluetooth::hal::BluetoothInterface::Get()->GetHALInterface();
-  iface->dump(fd);
+  iface->dump(fd, NULL);
   return android::NO_ERROR;
 }