include stdio only if printf used

This commit is contained in:
Milanka Ringwald 2020-11-05 14:08:09 +01:00
parent 8aee7659ad
commit 650b64aa21
3 changed files with 14 additions and 2 deletions

View File

@ -43,10 +43,13 @@
*/
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef OCTAVE_OUTPUT
#include <stdio.h>
#endif
#include "btstack_cvsd_plc.h"
#include "btstack_debug.h"

View File

@ -43,10 +43,13 @@
*/
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef OCTAVE_OUTPUT
#include <stdio.h>
#endif
#include "btstack_sbc_plc.h"
#include "btstack_debug.h"

View File

@ -42,6 +42,10 @@
#include <stdint.h>
#include <stdlib.h>
#ifdef ENABLE_OBEX_DUMP
#include <stdio.h>
#endif
#include "hci_cmd.h"
#include "btstack_debug.h"
#include "hci.h"
@ -155,6 +159,7 @@ const uint8_t * obex_iterator_get_data(const obex_iterator_t * context){
}
}
#ifdef ENABLE_OBEX_DUMP
void obex_dump_packet(uint8_t request_opcode, uint8_t * packet, uint16_t size){
obex_iterator_t it;
printf("OBEX Opcode: 0x%02x\n", request_opcode);
@ -185,3 +190,4 @@ void obex_dump_packet(uint8_t request_opcode, uint8_t * packet, uint16_t size){
}
}
#endif