From b0a96cacda4fe773bf16a0d666f5c9cef6cba971 Mon Sep 17 00:00:00 2001 From: "matthias.ringwald" Date: Tue, 7 Feb 2012 21:15:19 +0000 Subject: [PATCH] remove useless preprocessor macro --- src/hci_dump.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/hci_dump.c b/src/hci_dump.c index f20557eb1..fd5d5199d 100644 --- a/src/hci_dump.c +++ b/src/hci_dump.c @@ -56,8 +56,6 @@ #include // for mode flags #endif -// #define HCI_DUMP_FULL_LOG - // BLUEZ hcidump typedef struct { uint16_t len; @@ -91,7 +89,7 @@ static hcidump_hdr header_bluez; static pktlog_hdr header_packetlogger; static char time_string[40]; static int max_nr_packets = -1; -static int nr_packets = 0; +// static int nr_packets = 0; #endif void hci_dump_open(char *filename, hci_dump_format_t format){ @@ -116,7 +114,6 @@ void hci_dump_packet(uint8_t packet_type, uint8_t in, uint8_t *packet, uint16_t if (dump_file < 0) return; // not activated yet -#ifndef HCI_DUMP_FULL_LOG // don't grow bigger than max_nr_packets if (dump_format != HCI_DUMP_STDOUT && max_nr_packets > 0){ if (nr_packets >= max_nr_packets){ @@ -126,7 +123,6 @@ void hci_dump_packet(uint8_t packet_type, uint8_t in, uint8_t *packet, uint16_t } nr_packets++; } -#endif // get time struct timeval curr_time;