X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fcolead-slm%2Fprotocol.h;h=8942ac8558863a1dd5d94169c0a4c7836ded1f9c;hb=a4e435eb49c1fa30c31d5851b404001324cafe33;hp=0e37cd95ab4b8122bbfed1de0aafad245e57d597;hpb=f306ca61f65cb703b38e447bbd3dbea3ff9c57c0;p=libsigrok.git diff --git a/hardware/colead-slm/protocol.h b/hardware/colead-slm/protocol.h index 0e37cd95..8942ac85 100644 --- a/hardware/colead-slm/protocol.h +++ b/hardware/colead-slm/protocol.h @@ -24,14 +24,7 @@ #include "libsigrok.h" #include "libsigrok-internal.h" -/* Message logging helpers with driver-specific prefix string. */ -#define DRIVER_LOG_DOMAIN "colead-slm: " -#define sr_log(l, s, args...) sr_log(l, DRIVER_LOG_DOMAIN s, ## args) -#define sr_spew(s, args...) sr_spew(DRIVER_LOG_DOMAIN s, ## args) -#define sr_dbg(s, args...) sr_dbg(DRIVER_LOG_DOMAIN s, ## args) -#define sr_info(s, args...) sr_info(DRIVER_LOG_DOMAIN s, ## args) -#define sr_warn(s, args...) sr_warn(DRIVER_LOG_DOMAIN s, ## args) -#define sr_err(s, args...) sr_err(DRIVER_LOG_DOMAIN s, ## args) +#define LOG_PREFIX "colead-slm" enum { IDLE, @@ -51,7 +44,6 @@ struct dev_context { /** The current number of already received samples. */ uint64_t num_samples; - struct sr_serial_dev_inst *serial; int state; char buf[10]; int buflen;