X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=strutil.c;h=9bdf4336e4394cc1ac851b4f3b50cbe6fc4cee31;hb=a562c3a2e5e54dbb7e0553422ac0e0c845b180ad;hp=8b0203b01765cd06ff8fb35b07fb0df0309f0a1c;hpb=805e9640ff4a28dc470afb0b4f3b02aece44179b;p=libsigrok.git diff --git a/strutil.c b/strutil.c index 8b0203b0..9bdf4336 100644 --- 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;