39 #define PRINTF(...) printf(__VA_ARGS__)
46 mac_call_sent_callback(mac_callback_t sent,
void *ptr,
int status,
int num_tx)
48 PRINTF(
"mac_callback_t %p ptr %p status %d num_tx %d\n",
49 sent, ptr, status, num_tx);
52 PRINTF(
"mac: collision after %d tx\n", num_tx);
55 PRINTF(
"mac: noack after %d tx\n", num_tx);
58 PRINTF(
"mac: sent after %d tx\n", num_tx);
61 PRINTF(
"mac: error %d after %d tx\n", status, num_tx);
65 sent(ptr, status, num_tx);