From 5c723a57ebf09047b0fad0adab0f99c20e1b7d99 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 13 Oct 2018 01:02:30 +0200 Subject: log: Use human-readable output type name everywhere. --- type_decoder.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'type_decoder.c') diff --git a/type_decoder.c b/type_decoder.c index b90bdea..2ce7fc1 100644 --- a/type_decoder.c +++ b/type_decoder.c @@ -31,7 +31,7 @@ typedef struct { } srd_Decoder; /* This is only used for nicer srd_dbg() output. */ -static const char *output_type_name(unsigned int idx) +SRD_PRIV const char *output_type_name(unsigned int idx) { static const char names[][16] = { "OUTPUT_ANN", @@ -519,8 +519,8 @@ static PyObject *Decoder_register(PyObject *self, PyObject *args, return py_new_output_id; } - srd_dbg("Instance %s creating new output type %d for %s.", - di->inst_id, output_type, proto_id); + srd_dbg("Instance %s creating new output type %s for %s.", + di->inst_id, output_type_name(output_type), proto_id); pdo = g_malloc(sizeof(struct srd_pd_output)); -- cgit v1.2.3-70-g09d2