X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Flib%2Fmac%2Ftkn154%2FPromiscuousModeP.nc;h=8261c7d8b422778ea535cb82d050d3641e683f60;hb=82c215ff867ea7ef4fa748fb72b686c32ffb25e1;hp=4cba26cd1f6c714eb7e410e0d17a3816411103cc;hpb=afb6da3df34fdebb6843598761ef4de5eb0186f6;p=tinyos-2.x.git diff --git a/tos/lib/mac/tkn154/PromiscuousModeP.nc b/tos/lib/mac/tkn154/PromiscuousModeP.nc index 4cba26cd..8261c7d8 100644 --- a/tos/lib/mac/tkn154/PromiscuousModeP.nc +++ b/tos/lib/mac/tkn154/PromiscuousModeP.nc @@ -81,7 +81,7 @@ implementation return FAIL; m_promiscuousState = S_STARTING; call Token.request(); - call Debug.log(LEVEL_INFO, EnableRxP_PROMISCUOUS_REQUEST, m_promiscuousState, 0, 0); + call Debug.log(DEBUG_LEVEL_INFO, EnableRxP_PROMISCUOUS_REQUEST, m_promiscuousState, 0, 0); call Debug.flush(); return SUCCESS; } @@ -96,7 +96,7 @@ implementation if (call PromiscuousRx.prepare() != IEEE154_SUCCESS){ m_promiscuousState = S_IDLE; call Token.release(); - call Debug.log(LEVEL_IMPORTANT, EnableRxP_RADIORX_ERROR, 0, 0, 0); + call Debug.log(DEBUG_LEVEL_IMPORTANT, EnableRxP_RADIORX_ERROR, 0, 0, 0); signal PromiscuousMode.startDone(FAIL); } } @@ -115,7 +115,7 @@ implementation m_promiscuousState = S_STARTED; call PromiscuousRx.receive(NULL, 0); signal PromiscuousMode.startDone(SUCCESS); - call Debug.log(LEVEL_INFO, EnableRxP_PROMISCUOUS_ON, m_promiscuousState, 0, 0); + call Debug.log(DEBUG_LEVEL_INFO, EnableRxP_PROMISCUOUS_ON, m_promiscuousState, 0, 0); } event message_t* PromiscuousRx.received(message_t *frame, ieee154_reftime_t *timestamp) @@ -151,7 +151,7 @@ implementation call RadioPromiscuousMode.set(FALSE); call Token.release(); signal PromiscuousMode.stopDone(SUCCESS); - call Debug.log(LEVEL_INFO, EnableRxP_PROMISCUOUS_OFF, m_promiscuousState, 0, 0); + call Debug.log(DEBUG_LEVEL_INFO, EnableRxP_PROMISCUOUS_OFF, m_promiscuousState, 0, 0); } default event void PromiscuousMode.startDone(error_t error){}