summaryrefslogtreecommitdiff
path: root/log.c
diff options
context:
space:
mode:
authorBert Vermeulen <bert@biot.com>2012-01-22 02:51:49 +0100
committerBert Vermeulen <bert@biot.com>2012-01-22 02:51:49 +0100
commitd906d3f978233458fc73b56fb232352affd1b433 (patch)
treef17df2f3ac8989e77e63e0df2c0fdff0cd198222 /log.c
parent86d6a21e9913d38cc1ae2ebd279ed2ce61fb548f (diff)
downloadlibsigrokdecode-d906d3f978233458fc73b56fb232352affd1b433.tar.gz
libsigrokdecode-d906d3f978233458fc73b56fb232352affd1b433.zip
srd: make all debugging and error reporting uniform
Diffstat (limited to 'log.c')
-rw-r--r--log.c5
1 files changed, 2 insertions, 3 deletions
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;
}