Commit f2eeb7b8 authored by Alessandro Rubini's avatar Alessandro Rubini Committed by Aurelio Colosimo

diag: export pp_vprintf, add it to diag-no.c

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <>
parent 612ae4eb
......@@ -32,3 +32,6 @@ void pp_diag_printf(struct pp_instance *ppi, char *fmt, ...)
int pp_printf(const char *fmt, ...)
int pp_vprintf(const char *fmt, va_list args)
......@@ -23,8 +23,10 @@ extern void pp_diag_printf(struct pp_instance *ppi, char *fmt, ...)
/* Our printf, that is implemented internally */
extern int pp_printf(const char *fmt, ...)
__attribute__((format(printf, 1, 2)));
extern int pp_vprintf(const char *fmt, va_list args)
__attribute__((format(printf, 1, 0)));
extern int pp_vsprintf(char *buf, const char *, va_list)
__attribute__ ((format (printf, 2, 0)));
__attribute__ ((format (printf, 2, 0)));
#endif /* __PTP_DIAG_H__ */
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