]> sigrok.org Git - libsigrok.git/blobdiff - hwplugin.c
LA8: Shrink mangled_buf from 8MB to 4KB.
[libsigrok.git] / hwplugin.c
index 76d2b80c8a79ba9e01fb5f6752e9a19eb6f319cd..412cf2d68ab5b34e22f70a36543b61d75afd13a6 100644 (file)
@@ -25,6 +25,7 @@
 #include <string.h>
 #include <glib.h>
 #include <sigrok.h>
+#include <sigrok-internal.h>
 
 /* The list of loaded plugins lives here. */
 GSList *plugins;
@@ -137,7 +138,7 @@ struct sr_device_instance *sr_get_device_instance(GSList *device_instances,
                if (sdi->index == device_index)
                        return sdi;
        }
-       g_warning("could not find device index %d instance", device_index);
+       sr_warn("could not find device index %d instance", device_index);
 
        return NULL;
 }