static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static GSList *scan(struct sr_dev_driver *di, GSList *options)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static GSList *scan(struct sr_dev_driver *di, GSList *options)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static GSList *scan(struct sr_dev_driver *di, GSList *options)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static GSList *scan(struct sr_dev_driver *di, GSList *options)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static GSList *scan(struct sr_dev_driver *di, GSList *options, int modelid)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static GSList *scan(struct sr_dev_driver *di, GSList *options)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static struct dev_context *beaglelogic_devc_alloc(void)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static GSList *scan(struct sr_dev_driver *di, GSList *options)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static GSList *brymen_scan(const char *conn, const char *serialcomm)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static GSList *scan(struct sr_dev_driver *di, GSList *options)
static int init(struct sr_context *sr_ctx, int idx)
{
- return std_init(center_devs[idx].di, sr_ctx, LOG_PREFIX);
+ return std_init(center_devs[idx].di, sr_ctx);
}
static GSList *center_scan(const char *conn, const char *serialcomm, int idx)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static int add_device(int model, struct libusb_device_descriptor *des,
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static GSList *scan(struct sr_dev_driver *di, GSList *options)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static GSList *scan(struct sr_dev_driver *di, GSList *options)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static void generate_analog_pattern(struct analog_gen *ag, uint64_t sample_rate)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static int dev_clear(const struct sr_dev_driver *di)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static GSList *fluke_scan(struct sr_dev_driver *di, const char *conn,
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static void scan_device(struct sr_dev_driver *di, struct libusb_device *dev, GSList **devices)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static GSList *scan(struct sr_dev_driver *di, GSList *options)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
/**
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static struct sr_dev_inst *probe_device(struct sr_scpi_dev_inst *scpi)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static int check_manufacturer(const char *manufacturer)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static GSList *scan(struct sr_dev_driver *di, GSList *options)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static GSList *scan(struct sr_dev_driver *di, GSList *options)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static GSList *scan(struct sr_dev_driver *di, GSList *options)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static GSList *scan_port(GSList *devices, struct sr_dev_driver *di,
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static GSList *scan(struct sr_dev_driver *di, GSList *options)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static GSList *scan(struct sr_dev_driver *di, GSList *options)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static int scan_kecheng(struct sr_dev_driver *di,
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static GSList *scan(struct sr_dev_driver *di, GSList *options)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static GSList *scan(struct sr_dev_driver *di, GSList *options)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static GSList *scan(struct sr_dev_driver *di, GSList *options)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static struct sr_dev_inst *create_device(struct sr_dev_driver *di,
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static GSList *scan(struct sr_dev_driver *di, GSList *options)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static GSList *scan(struct sr_dev_driver *di, GSList *options)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static struct sr_dev_inst *probe_device(struct sr_modbus_dev_inst *modbus)
static int init(struct sr_context *sr_ctx, int idx)
{
- return std_init(mic_devs[idx].di, sr_ctx, LOG_PREFIX);
+ return std_init(mic_devs[idx].di, sr_ctx);
}
static GSList *mic_scan(const char *conn, const char *serialcomm, int idx)
static int init_lps301(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
/** Send command to device with va_list.
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static GSList *scan(struct sr_dev_driver *drv, GSList *options)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static GSList *scan(struct sr_dev_driver *di, GSList *options)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static GSList *scan(struct sr_dev_driver *di, GSList *options)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static struct sr_dev_inst *probe_device(struct sr_scpi_dev_inst *scpi)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static gboolean check_conf_profile(libusb_device *dev)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static struct sr_dev_inst *probe_device(struct sr_scpi_dev_inst *scpi)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static GSList *scan(struct sr_dev_driver *di, GSList *options)
*/
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
/* Create a new sigrok device instance for the indicated LWLA model.
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static GSList *scan(struct sr_dev_driver *di, GSList *options)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static GSList *scan(struct sr_dev_driver *di, GSList *options)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static GSList *scan(struct sr_dev_driver *di, GSList *options)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static GSList *scan(struct sr_dev_driver *di, GSList *options)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static GSList *scan(struct sr_dev_driver *di, GSList *options)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static GSList *scan(struct sr_dev_driver *di, GSList *options)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static struct sr_dev_inst *probe_usbtmc_device(struct sr_scpi_dev_inst *scpi)
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static GSList *scan(struct sr_dev_driver *di, GSList *options)
typedef int (*dev_close_callback)(struct sr_dev_inst *sdi);
typedef void (*std_dev_clear_callback)(void *priv);
-SR_PRIV int std_init(struct sr_dev_driver *di, struct sr_context *sr_ctx,
- const char *prefix);
+SR_PRIV int std_init(struct sr_dev_driver *di, struct sr_context *sr_ctx);
SR_PRIV int std_cleanup(const struct sr_dev_driver *di);
#ifdef HAVE_LIBSERIALPORT
SR_PRIV int std_serial_dev_open(struct sr_dev_inst *sdi);
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
- return std_init(di, sr_ctx, LOG_PREFIX);
+ return std_init(di, sr_ctx);
}
static int dev_clear(const struct sr_dev_driver *di)
*
* @param di The driver instance to use.
* @param sr_ctx The libsigrok context to assign.
- * @param[in] prefix A driver-specific prefix string used for log messages.
*
* @return SR_OK upon success, SR_ERR_ARG upon invalid arguments.
*/
-SR_PRIV int std_init(struct sr_dev_driver *di, struct sr_context *sr_ctx,
- const char *prefix)
+SR_PRIV int std_init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
struct drv_context *drvc;
- if (!di) {
- sr_err("%s: Invalid driver, cannot initialize.", prefix);
- return SR_ERR_ARG;
- }
-
drvc = g_malloc0(sizeof(struct drv_context));
drvc->sr_ctx = sr_ctx;
drvc->instances = NULL;