]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/mac/tkn154/PromiscuousModeP.nc
+ modified radio driver (PHY) interfaces: CSMA-CA algorithm is now pushed to radio...
[tinyos-2.x.git] / tos / lib / mac / tkn154 / PromiscuousModeP.nc
index 4cba26cd1f6c714eb7e410e0d17a3816411103cc..8261c7d8b422778ea535cb82d050d3641e683f60 100644 (file)
@@ -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){}