summaryrefslogtreecommitdiffstats
path: root/gki/common/gki_debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'gki/common/gki_debug.c')
-rw-r--r--gki/common/gki_debug.c2
1 files changed, 1 insertions, 1 deletions
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;