From d906d3f978233458fc73b56fb232352affd1b433 Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Sun, 22 Jan 2012 02:51:49 +0100 Subject: srd: make all debugging and error reporting uniform --- log.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'log.c') diff --git a/log.c b/log.c index af4196c..6b9a20d 100644 --- a/log.c +++ b/log.c @@ -39,14 +39,13 @@ static int srd_loglevel = SRD_LOG_WARN; /* Show errors+warnings per default. */ int srd_set_loglevel(int loglevel) { if (loglevel < SRD_LOG_NONE || loglevel > SRD_LOG_SPEW) { - srd_err("log: %s: invalid loglevel %d", __func__, loglevel); + srd_err("Invalid loglevel %d.", loglevel); return SRD_ERR_ARG; } srd_loglevel = loglevel; - srd_dbg("log: %s: libsigrokdecode loglevel set to %d", - __func__, loglevel); + srd_dbg("srd: loglevel set to %d", loglevel); return SRD_OK; } -- cgit v1.2.3-70-g09d2