* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-/** \file
+/** @file
* Standard API helper functions.
* @internal
*/
#include "libsigrok.h"
#include "libsigrok-internal.h"
+#define LOG_PREFIX "std"
+
/**
* Standard sr_driver_init() API helper.
*
driver->dev_close(sdi);
if (sdi->conn) {
-#if HAVE_LIBSERIALPORT
+#ifdef HAVE_LIBSERIALPORT
if (sdi->inst_type == SR_INST_SERIAL)
sr_serial_dev_inst_free(sdi->conn);
#endif
-#if HAVE_LIBUSB_1_0
+#ifdef HAVE_LIBUSB_1_0
if (sdi->inst_type == SR_INST_USB)
sr_usb_dev_inst_free(sdi->conn);
#endif