Commit 39c111ca authored by Alessandro Rubini's avatar Alessandro Rubini

diag: trivial: kill unused diag_trace

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent cfd0d8a0
......@@ -26,11 +26,6 @@ void pp_diag_fsm(struct pp_instance *ppi, char *name, int sequence, int plen)
name, ppi->next_state, ppi->next_delay);
}
void pp_diag_trace(struct pp_instance *ppi, const char *f, int line)
{
pp_printf("TRACE for %p: %s:%i\n", ppi, f, line);
}
void pp_diag_error(struct pp_instance *ppi, int err)
{
pp_printf("ERR for %p: %i\n", ppi, err);
......
......@@ -6,9 +6,8 @@
#include <ppsi/ppsi.h>
/*
* The diagnostic functions (diag-yes.c and diag-no.c).
* The diagnostic functions
*
* Use trace like "pp_diag_trace(ppi, __func__, __LINE__)".
* error gets an integer, the other ones two strings (so we can
* strerror(errno) together with the explanation. Avoid diag_printf if
* possible, for size reasons, but here it is anyways.
......@@ -20,7 +19,6 @@ enum {
};
extern void pp_diag_fsm(struct pp_instance *ppi, char *name, int seq, int plen);
extern void pp_diag_trace(struct pp_instance *ppi, const char *f, int line);
extern void pp_diag_error(struct pp_instance *ppi, int err);
extern void pp_diag_error_str2(struct pp_instance *ppi, char *s1, char *s2);
extern void pp_diag_fatal(struct pp_instance *ppi, char *s1, char *s2);
......
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