Creating log_internal.h for log_*put_internal() prototypes
Fixed warning "no previous prototype for function" in log_posix.c
This commit is contained in:
parent
7e26aa368d
commit
6a110b3849
4 changed files with 6 additions and 13 deletions
|
@ -73,11 +73,8 @@ log_priority_to_str(const int priority)
|
||||||
|
|
||||||
|
|
||||||
#ifdef LOG
|
#ifdef LOG
|
||||||
// Internal methods so different platforms can route the logging
|
|
||||||
// Offering both forms of the variadic function
|
#include "log_internal.h"
|
||||||
// These are implemented in the log_<platform> specific file
|
|
||||||
void log_put_internal(const char *format, ...);
|
|
||||||
void log_vput_internal(const char *format, va_list args);
|
|
||||||
|
|
||||||
void
|
void
|
||||||
log_init(const nfc_context *context)
|
log_init(const nfc_context *context)
|
||||||
|
|
|
@ -70,6 +70,8 @@ void log_put(const uint8_t group, const char *category, const uint8_t priority,
|
||||||
__attribute__((format(printf, 4, 5)))
|
__attribute__((format(printf, 4, 5)))
|
||||||
# endif
|
# endif
|
||||||
;
|
;
|
||||||
|
void log_put_internal(const char *format, ...);
|
||||||
|
void log_vput_internal(const char *format, va_list args);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
// No logging
|
// No logging
|
||||||
|
|
|
@ -17,11 +17,8 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "log.h"
|
#include "log_internal.h"
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <inttypes.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
|
|
@ -17,11 +17,8 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "log.h"
|
#include "log_internal.h"
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <inttypes.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <strsafe.h>
|
#include <strsafe.h>
|
||||||
|
|
Loading…
Add table
Reference in a new issue