hci_dump: fix compile for AVR

This commit is contained in:
Matthias Ringwald 2021-05-07 00:30:27 +02:00
parent e6d6524d17
commit 560d2a7afb
2 changed files with 4 additions and 3 deletions

View File

@ -111,7 +111,7 @@ void hci_dump_log_P(int log_level, PGM_P format, ...){
va_list argptr;
va_start(argptr, format);
(*hci_dump_impl->log_packet_P)(format, argptr);
(*hci_dump_impl->log_message_P)(format, argptr);
va_end(argptr);
}
#endif

View File

@ -82,7 +82,7 @@ typedef struct {
void (*log_message)(const char * format, va_list argptr);
#ifdef __AVR__ \
// log message - AVR
void (*log_message_P)(int log_level, PGM_P * format, va_list argptr);
void (*log_message_P)(PGM_P * format, va_list argptr);
#endif
} hci_dump_t;
@ -134,10 +134,11 @@ __attribute__ ((format (__printf__, 2, 3)))
* @param log_level
* @param format
*/
void hci_dump_log_P(int log_level, PGM_P format, ...);
void hci_dump_log_P(int log_level, PGM_P format, ...)
#ifdef __GNUC__
__attribute__ ((format (__printf__, 2, 3)))
#endif
;
#endif
/**