]> sigrok.org Git - libsigrok.git/blobdiff - strutil.c
libsigrok: Use sr_err() et al instead of printf.
[libsigrok.git] / strutil.c
index 8b0203b01765cd06ff8fb35b07fb0df0309f0a1c..9bdf4336e4394cc1ac851b4f3b50cbe6fc4cee31 100644 (file)
--- a/strutil.c
+++ b/strutil.c
@@ -144,7 +144,7 @@ char **sr_parse_triggerstring(struct sr_device *device,
                }
 
                if (probenum < 1 || probenum > max_probes) {
-                       printf("Invalid probe.\n");
+                       sr_err("Invalid probe.\n");
                        error = TRUE;
                        break;
                }
@@ -152,7 +152,7 @@ char **sr_parse_triggerstring(struct sr_device *device,
                if ((trigger = strchr(tokens[i], '='))) {
                        for (tc = ++trigger; *tc; tc++) {
                                if (strchr(trigger_types, *tc) == NULL) {
-                                       printf("Unsupported trigger type "
+                                       sr_err("Unsupported trigger type "
                                               "'%c'\n", *tc);
                                        error = TRUE;
                                        break;