summaryrefslogtreecommitdiffstats
path: root/gki/common
diff options
context:
space:
mode:
authorKausik Sinnaswamy <kausik@broadcom.com>2012-03-07 19:30:20 -0800
committerMatthew Xie <mattx@google.com>2012-07-14 11:19:12 -0700
commit95fa11b3b2f19a382c7e3a744a6afb452fad86df (patch)
tree1019e123db4596f2b8bd1259da04b51f3c44d7b2 /gki/common
parente2197423bcf1a93c620be13d458a9da6693fa94d (diff)
downloadexternal_bluetooth_bluedroid-95fa11b3b2f19a382c7e3a744a6afb452fad86df.zip
external_bluetooth_bluedroid-95fa11b3b2f19a382c7e3a744a6afb452fad86df.tar.gz
external_bluetooth_bluedroid-95fa11b3b2f19a382c7e3a744a6afb452fad86df.tar.bz2
AV control and data path added
Change-Id: I88ec6084c140fa257154a98e23e075900e84cc8c
Diffstat (limited to 'gki/common')
-rw-r--r--gki/common/gki_buffer.c3
-rw-r--r--gki/common/gki_debug.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/gki/common/gki_buffer.c b/gki/common/gki_buffer.c
index a32c275..fbf19b8 100644
--- a/gki/common/gki_buffer.c
+++ b/gki/common/gki_buffer.c
@@ -10,6 +10,7 @@
** *
*********************************************************************************/
#include "gki_int.h"
+#include <cutils/log.h>
#if (GKI_NUM_TOTAL_BUF_POOLS > 16)
#error Number of pools out of range (16 Max)!
@@ -88,7 +89,7 @@ static BOOLEAN gki_alloc_free_queue(UINT8 id)
{
FREE_QUEUE_T *Q;
tGKI_COM_CB *p_cb = &gki_cb.com;
- GKI_TRACE("\ngki_alloc_free_queue in, id:%d \n", id);
+ GKI_TRACE("\ngki_alloc_free_queue in, id:%d \n", (int)id );
Q = &p_cb->freeq[p_cb->pool_list[id]];
diff --git a/gki/common/gki_debug.c b/gki/common/gki_debug.c
index 3ec8fc5..45b281a 100644
--- a/gki/common/gki_debug.c
+++ b/gki/common/gki_debug.c
@@ -210,7 +210,7 @@ GKI_API void gki_print_used_bufs (FP_PRINT print, UINT8 pool_id)
UINT16 *p;
- if (pool_id >= GKI_NUM_TOTAL_BUF_POOLS && gki_cb.com.pool_start[pool_id] != 0)
+ if ((pool_id >= GKI_NUM_TOTAL_BUF_POOLS) || (gki_cb.com.pool_start[pool_id] != 0))
{
print("Not a valid Buffer pool\n");
return;