*/
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:
return "no channel group specified";
case SR_ERR_DATA:
return "data is invalid";
+ case SR_ERR_IO:
+ return "input/output error";
default:
return "unknown error";
}
*/
switch (error_code) {
+ case SR_OK_CONTINUE:
+ return "SR_OK_CONTINUE";
case SR_OK:
return "SR_OK";
case SR_ERR:
return "SR_ERR_TIMEOUT";
case SR_ERR_CHANNEL_GROUP:
return "SR_ERR_CHANNEL_GROUP";
+ case SR_ERR_DATA:
+ return "SR_ERR_DATA";
+ case SR_ERR_IO:
+ return "SR_ERR_IO";
default:
return "unknown error code";
}