From: Uwe Hermann Date: Tue, 16 Apr 2013 10:54:11 +0000 (+0200) Subject: error.c: Add missing SR_ERR_ARG and SR_ERR_NA. X-Git-Tag: dsupstream~127 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=0223135bfb6771d7749fa39cff64a78c7a84a674;p=libsigrok.git error.c: Add missing SR_ERR_ARG and SR_ERR_NA. --- diff --git a/error.c b/error.c index 01fb7912..e3947a2f 100644 --- a/error.c +++ b/error.c @@ -69,12 +69,18 @@ SR_API const char *sr_strerror(int error_code) case SR_ERR_MALLOC: str = "memory allocation error"; break; + case SR_ERR_ARG: + str = "invalid argument"; + break; case SR_ERR_BUG: str = "internal error"; break; case SR_ERR_SAMPLERATE: str = "invalid samplerate"; break; + case SR_ERR_NA: + str = "not applicable"; + break; default: str = "unknown error"; break; @@ -120,12 +126,18 @@ SR_API const char *sr_strerror_name(int error_code) case SR_ERR_MALLOC: str = "SR_ERR_MALLOC"; break; + case SR_ERR_ARG: + str = "SR_ERR_ARG"; + break; case SR_ERR_BUG: str = "SR_ERR_BUG"; break; case SR_ERR_SAMPLERATE: str = "SR_ERR_SAMPLERATE"; break; + case SR_ERR_NA: + str = "SR_ERR_NA"; + break; default: str = "unknown error code"; break;