diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2011-12-21 19:09:46 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2011-12-22 14:16:07 +0100 |
commit | a62186e44c606a8d4cb45b3d8c3cc9fa6a5038ea (patch) | |
tree | 9d63d4c3caf44b2e3b288222d05783b852b4cf29 /log.c | |
parent | 43c0a640533331c45ed1b46725524773085de99e (diff) | |
download | libsigrokdecode-a62186e44c606a8d4cb45b3d8c3cc9fa6a5038ea.tar.gz libsigrokdecode-a62186e44c606a8d4cb45b3d8c3cc9fa6a5038ea.zip |
srd: SRD_ERR_ARGS -> SRD_ERR_ARG.
This is done to be consistent with libsigrok's SR_ERR_ARG (nicer that way).
Diffstat (limited to 'log.c')
-rw-r--r-- | log.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -34,13 +34,13 @@ static int srd_loglevel = SRD_LOG_WARN; /* Show errors+warnings per default. */ * * @param loglevel The loglevel to set (SRD_LOG_NONE, SRD_LOG_ERR, * SRD_LOG_WARN, SRD_LOG_INFO, SRD_LOG_DBG, or SRD_LOG_SPEW). - * @return SRD_OK upon success, SRD_ERR_ARGS upon invalid loglevel. + * @return SRD_OK upon success, SRD_ERR_ARG upon invalid loglevel. */ int srd_set_loglevel(int loglevel) { if (loglevel < SRD_LOG_NONE || loglevel > SRD_LOG_SPEW) { srd_err("log: %s: invalid loglevel %d", __func__, loglevel); - return SRD_ERR_ARGS; + return SRD_ERR_ARG; } srd_loglevel = loglevel; |