From: Bert Vermeulen Date: Thu, 27 Nov 2014 00:00:40 +0000 (+0100) Subject: saleae-logic16: Clearer error message. X-Git-Tag: libsigrok-0.4.0~705 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=5cfcab6603414489181ded122b51579f7b546024;p=libsigrok.git saleae-logic16: Clearer error message. --- diff --git a/src/hardware/saleae-logic16/protocol.c b/src/hardware/saleae-logic16/protocol.c index bd96e634..d60bf3e7 100644 --- a/src/hardware/saleae-logic16/protocol.c +++ b/src/hardware/saleae-logic16/protocol.c @@ -470,7 +470,7 @@ SR_PRIV int logic16_setup_acquisition(const struct sr_dev_inst *sdi, reg1 &= ~0x20; if (devc->fpga_variant == FPGA_VARIANT_ORIGINAL && reg1 != 0x08) { - sr_dbg("Invalid state at acquisition setup: 0x%02x != 0x08.", reg1); + sr_dbg("Invalid state at acquisition setup register 1: 0x%02x != 0x08.", reg1); return SR_ERR; } @@ -499,7 +499,7 @@ SR_PRIV int logic16_setup_acquisition(const struct sr_dev_inst *sdi, return ret; if (devc->fpga_variant == FPGA_VARIANT_ORIGINAL && reg1 != 0x48) { - sr_dbg("Invalid state at acquisition setup: 0x%02x != 0x48. " + sr_dbg("Invalid state at acquisition setup register 1: 0x%02x != 0x48. " "Proceeding anyway.", reg1); } @@ -507,7 +507,7 @@ SR_PRIV int logic16_setup_acquisition(const struct sr_dev_inst *sdi, return ret; if (devc->fpga_variant == FPGA_VARIANT_ORIGINAL && reg10 != clock_select) { - sr_dbg("Invalid state at acquisition setup: 0x%02x != 0x%02x.", + sr_dbg("Invalid state at acquisition setup register 10: 0x%02x != 0x%02x.", reg10, clock_select); return SR_ERR; }