]> sigrok.org Git - libsigrok.git/commitdiff
asix-sigma: Drop duplicate error message prefixes.
authorUwe Hermann <redacted>
Tue, 24 Mar 2020 18:22:11 +0000 (19:22 +0100)
committerUwe Hermann <redacted>
Tue, 24 Mar 2020 18:22:11 +0000 (19:22 +0100)
The sr_err() call automatically adds a prefix to all messages, in
this specific case "asix-sigma: " will be added.

src/hardware/asix-sigma/protocol.c

index 268c13cc0686b833d6ce1c022c94d88bab01108f..3c29aad9f3a33dfc75615a5e2535f4018fb5d06e 100644 (file)
@@ -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;