Commit 0c9dc6de authored by Tomasz Wlostowski's avatar Tomasz Wlostowski

libposix/ptpd-wrappers.h: removed compiler warnings, use system sprintf

parent f10d8004
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#include <stdio.h> #include <stdio.h>
#include <inttypes.h> #include <inttypes.h>
#include <unistd.h>
/* /*
* This is a freestanding compilation, and we may miss some data * This is a freestanding compilation, and we may miss some data
* structures. For example misses <stdint.h>. Most likely it's * structures. For example misses <stdint.h>. Most likely it's
...@@ -55,7 +56,7 @@ static inline void ptpd_handle_wripc() {} ...@@ -55,7 +56,7 @@ static inline void ptpd_handle_wripc() {}
#define printf(x, ...) mprintf(x, ##__VA_ARGS__) #define printf(x, ...) mprintf(x, ##__VA_ARGS__)
#define fprintf(file, x, ...) mprintf(x, ##__VA_ARGS__) #define fprintf(file, x, ...) mprintf(x, ##__VA_ARGS__)
#define sprintf(buf, ...) msprintf(buf, __VA_ARGS__) //#define sprintf(buf, ...) msprintf(buf, __VA_ARGS__)
//#define DBG(x, ...) mprintf(x, ##__VA_ARGS__) //#define DBG(x, ...) mprintf(x, ##__VA_ARGS__)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment