]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/baylibre-acme/protocol.c
Build: Include <config.h> first in all source files
[libsigrok.git] / src / hardware / baylibre-acme / protocol.c
index a50c221993bd31852a57bd5ddac404c14fcea41e..d9131cb09c9f3fe097366b85f3f2b178c2ebe652 100644 (file)
@@ -17,6 +17,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <config.h>
 #include <string.h>
 #include <stdlib.h>
 #include <errno.h>
@@ -507,7 +508,7 @@ static float read_sample(struct sr_channel *ch)
 
        len = read(fd, buf, sizeof(buf));
        if (len < 0) {
-               sr_err("Error reading from channel %s (hwmon: %s): %s",
+               sr_err("Error reading from channel %s (hwmon: %d): %s",
                        ch->name, chp->probe->hwmon_num, g_strerror(errno));
                ch->enabled = FALSE;
                return -1.0;