X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fsystem%2FPoolP.nc;fp=tos%2Fsystem%2FPoolP.nc;h=14dbec6659d266e7c1b2111664568d69aaae786e;hb=1e00b5de46202d277a884695961ab024977f8ce4;hp=c7198505a2480875ae58d24df573ccd187671561;hpb=cd2df3253138f43f5cf4099198c6970b8e7807d9;p=tinyos-2.x.git diff --git a/tos/system/PoolP.nc b/tos/system/PoolP.nc index c7198505..14dbec66 100644 --- a/tos/system/PoolP.nc +++ b/tos/system/PoolP.nc @@ -73,9 +73,11 @@ implementation { } command bool Pool.empty() { + dbg("PoolP", "%s size is %i\n", __FUNCTION__, (int)free); return free == 0; } command uint8_t Pool.size() { + dbg("PoolP", "%s size is %i\n", __FUNCTION__, (int)free); return free; } @@ -92,6 +94,7 @@ implementation { if (index == size) { index = 0; } + dbg("PoolP", "%s size is %i\n", __FUNCTION__, (int)free); return rval; } return NULL; @@ -108,6 +111,7 @@ implementation { } queue[emptyIndex] = newVal; free++; + dbg("PoolP", "%s size is %i\n", __FUNCTION__, (int)free); return SUCCESS; } }