X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fagilent-dmm%2Fagilent-dmm.h;h=f3922a1fe9b314be86e46bfbf65cf08468daf2b4;hb=2e5b73c00c7329c9b6ef7bf8f626a22884eac5c0;hp=4c8ecac4c1670d40c04ee205bde596d46329a21a;hpb=e9022f596d9a6d35919445f3aa6394061b3e6681;p=libsigrok.git diff --git a/hardware/agilent-dmm/agilent-dmm.h b/hardware/agilent-dmm/agilent-dmm.h index 4c8ecac4..f3922a1f 100644 --- a/hardware/agilent-dmm/agilent-dmm.h +++ b/hardware/agilent-dmm/agilent-dmm.h @@ -21,6 +21,15 @@ #ifndef LIBSIGROK_AGILENT_DMM_H #define LIBSIGROK_AGILENT_DMM_H +/* Message logging helpers with driver-specific prefix string. */ +#define DRIVER_LOG_DOMAIN "agilent-dmm: " +#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 AGDMM_BUFSIZE 256 /* Supported models */ @@ -37,7 +46,6 @@ enum { struct agdmm_profile { int model; const char *modelname; - int serial_speed; const struct agdmm_job *jobs; const struct agdmm_recv *recvs; }; @@ -47,7 +55,6 @@ struct dev_context { const struct agdmm_profile *profile; uint64_t limit_samples; uint64_t limit_msec; - struct sr_serial_dev_inst *serial; /* Opaque pointer passed in by the frontend. */ void *cb_data;