Merge pull request #129 from g-oikonomou/contrib/sensniff

Change debug statement
This commit is contained in:
Simon Duquennoy 2017-10-30 09:30:46 +01:00 committed by GitHub
commit 7175003662
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,13 +44,6 @@
#include <stdint.h>
#include <stdio.h>
/*---------------------------------------------------------------------------*/
#define DEBUG 1
#if DEBUG
#define PRINTF(...) printf(__VA_ARGS__)
#else
#define PRINTF(...)
#endif
/*---------------------------------------------------------------------------*/
PROCESS(sensniff_process, "sensniff process");
AUTOSTART_PROCESSES(&sensniff_process);
/*---------------------------------------------------------------------------*/
@ -318,7 +311,7 @@ PROCESS_THREAD(sensniff_process, ev, data)
/* Turn off RF frame filtering and H/W ACKs */
if(NETSTACK_RADIO.set_value(RADIO_PARAM_RX_MODE, 0) != RADIO_RESULT_OK) {
PRINTF("sensniff: Error setting RF in promiscuous mode\n");
printf("sensniff: Error setting RF in promiscuous mode\n");
PROCESS_EXIT();
}