diff options
author | Bert Vermeulen <bert@biot.com> | 2012-01-22 02:51:49 +0100 |
---|---|---|
committer | Bert Vermeulen <bert@biot.com> | 2012-01-22 02:51:49 +0100 |
commit | d906d3f978233458fc73b56fb232352affd1b433 (patch) | |
tree | f17df2f3ac8989e77e63e0df2c0fdff0cd198222 /log.c | |
parent | 86d6a21e9913d38cc1ae2ebd279ed2ce61fb548f (diff) | |
download | libsigrokdecode-d906d3f978233458fc73b56fb232352affd1b433.tar.gz libsigrokdecode-d906d3f978233458fc73b56fb232352affd1b433.zip |
srd: make all debugging and error reporting uniform
Diffstat (limited to 'log.c')
-rw-r--r-- | log.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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; } |