From: Uwe Hermann Date: Tue, 24 Mar 2020 18:22:11 +0000 (+0100) Subject: asix-sigma: Drop duplicate error message prefixes. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=bfa79fbdb65e56f56b062b56ca92271d5473ef5b;p=libsigrok.git asix-sigma: Drop duplicate error message prefixes. The sr_err() call automatically adds a prefix to all messages, in this specific case "asix-sigma: " will be added. --- diff --git a/src/hardware/asix-sigma/protocol.c b/src/hardware/asix-sigma/protocol.c index 268c13cc..3c29aad9 100644 --- a/src/hardware/asix-sigma/protocol.c +++ b/src/hardware/asix-sigma/protocol.c @@ -1016,7 +1016,7 @@ static int download_capture(struct sr_dev_inst *sdi) sigma_set_register(WRITE_MODE, WMR_FORCESTOP | WMR_SDRAMWRITEEN, devc); do { if (sigma_read_register(READ_MODE, &modestatus, 1, devc) != 1) { - sr_err("sigma: failed while waiting for RMR_POSTTRIGGERED bit"); + sr_err("failed while waiting for RMR_POSTTRIGGERED bit"); return FALSE; } } while (!(modestatus & RMR_POSTTRIGGERED)); @@ -1029,7 +1029,7 @@ static int download_capture(struct sr_dev_inst *sdi) /* Check if trigger has fired. */ if (sigma_read_register(READ_MODE, &modestatus, 1, devc) != 1) { - sr_err("sigma: failed to read READ_MODE register"); + sr_err("failed to read READ_MODE register"); return FALSE; } trg_line = ~0;