]> sigrok.org Git - libsigrok.git/blobdiff - src/error.c
Brymen BM25x: Drop unneeded _ser/_SER suffix.
[libsigrok.git] / src / error.c
index f87797528088d4e946a5ae884352064843ce7a84..d4e22d5ae5ea42ac08e610455e34f7d3130d6e3f 100644 (file)
@@ -58,6 +58,8 @@ SR_API const char *sr_strerror(int error_code)
         */
 
        switch (error_code) {
+       case SR_OK_CONTINUE:
+               return "not enough data to decide error status yet";
        case SR_OK:
                return "no error";
        case SR_ERR:
@@ -78,6 +80,8 @@ SR_API const char *sr_strerror(int error_code)
                return "timeout occurred";
        case SR_ERR_CHANNEL_GROUP:
                return "no channel group specified";
+       case SR_ERR_DATA:
+               return "data is invalid";
        default:
                return "unknown error";
        }
@@ -109,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:
@@ -129,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";
        }