]> sigrok.org Git - libsigrok.git/commitdiff
error.c: Add missing entries.
authorUwe Hermann <redacted>
Sun, 31 Aug 2014 22:08:23 +0000 (00:08 +0200)
committerUwe Hermann <redacted>
Sun, 31 Aug 2014 22:08:53 +0000 (00:08 +0200)
src/error.c

index 9956089fe7baeb6668266a62c10cc9ad19751cf0..d4e22d5ae5ea42ac08e610455e34f7d3130d6e3f 100644 (file)
@@ -113,6 +113,8 @@ SR_API const char *sr_strerror_name(int error_code)
         */
 
        switch (error_code) {
+       case SR_OK_CONTINUE:
+               return "SR_OK_CONTINUE";
        case SR_OK:
                return "SR_OK";
        case SR_ERR:
@@ -133,6 +135,8 @@ SR_API const char *sr_strerror_name(int error_code)
                return "SR_ERR_TIMEOUT";
        case SR_ERR_CHANNEL_GROUP:
                return "SR_ERR_CHANNEL_GROUP";
+       case SR_ERR_DATA:
+               return "SR_ERR_DATA";
        default:
                return "unknown error code";
        }