X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Ffx2lafw%2Fprotocol.h;h=c23db39aadecebb85c02dfe146bb581812dfa598;hb=79bc9924d70d6c785c3ab28d35ac67f4a3601e1d;hp=5ccf8c1c208c01bc7475113eac555c9a14741b53;hpb=2f9376117c804898eaf75c3efebdbd97b6d89695;p=libsigrok.git diff --git a/hardware/fx2lafw/protocol.h b/hardware/fx2lafw/protocol.h index 5ccf8c1c..c23db39a 100644 --- a/hardware/fx2lafw/protocol.h +++ b/hardware/fx2lafw/protocol.h @@ -29,14 +29,7 @@ #include "libsigrok.h" #include "libsigrok-internal.h" -/* Message logging helpers with subsystem-specific prefix string. */ -#define LOG_PREFIX "fx2lafw: " -#define sr_log(l, s, args...) sr_log(l, LOG_PREFIX s, ## args) -#define sr_spew(s, args...) sr_spew(LOG_PREFIX s, ## args) -#define sr_dbg(s, args...) sr_dbg(LOG_PREFIX s, ## args) -#define sr_info(s, args...) sr_info(LOG_PREFIX s, ## args) -#define sr_warn(s, args...) sr_warn(LOG_PREFIX s, ## args) -#define sr_err(s, args...) sr_err(LOG_PREFIX s, ## args) +#define LOG_PREFIX "fx2lafw" #define USB_INTERFACE 0 #define USB_CONFIGURATION 1 @@ -103,7 +96,7 @@ struct dev_context { void *cb_data; unsigned int num_transfers; struct libusb_transfer **transfers; - int *usbfd; + struct sr_context *ctx; }; SR_PRIV int fx2lafw_command_start_acquisition(libusb_device_handle *devhdl,