if (error->cause)
snprintf(buf, sizeof(buf), "cause: %p, ", error->cause);
- printf("%s: %s%s (error %d)\n", errstr, error->cause ? buf : "",
+ fprintf(stderr, "%s: %s%s (error %d)\n",
+ errstr, error->cause ? buf : "",
error->message ? error->message : "(no stated reason)",
error->type);
}
/* Parse meter input color string params */
ret = parse_meter_color_str(c_str, &use_prev_meter_color, &dscp_table);
if (ret) {
- printf(" Meter input color params string parse error\n");
+ fprintf(stderr,
+ " Meter input color params string parse error\n");
return;
}
/* Parse string */
ret = parse_multi_token_string(t_str, &port_id, &mtr_id, &dscp_table);
if (ret) {
- printf(" Multi token string parse error\n");
+ fprintf(stderr, " Multi token string parse error\n");
return;
}