]> sigrok.org Git - libsigrok.git/blobdiff - src/ezusb.c
No need to check return value of libusb_get_device_descriptor().
[libsigrok.git] / src / ezusb.c
index 9f40d3b72179e5fd1b2a81afb1c077babc3b986f..517e5f72806d35f421624fb48e3e0e3916fe19bf 100644 (file)
  * Helper functions for the Cypress EZ-USB / FX2 series chips.
  */
 
+#include <config.h>
 #include <libusb.h>
 #include <glib.h>
 #include <glib/gstdio.h>
 #include <stdio.h>
 #include <errno.h>
 #include <string.h>
-#include "libsigrok.h"
+#include <libsigrok/libsigrok.h>
 #include "libsigrok-internal.h"
 
 #define LOG_PREFIX "ezusb"
@@ -59,7 +60,7 @@ SR_PRIV int ezusb_install_firmware(libusb_device_handle *hdl,
        sr_info("Uploading firmware at %s", filename);
        if (!(fw = g_fopen(filename, "rb"))) {
                sr_err("Unable to open firmware file %s for reading: %s",
-                      filename, strerror(errno));
+                      filename, g_strerror(errno));
                return SR_ERR;
        }