From: Uwe Hermann Date: Thu, 14 Jun 2018 20:05:03 +0000 (+0200) Subject: gwinstek-gpd: Drop some unneeded debug logs. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=eaa8c6597b880d018731c36922ed4013e34813e1;p=libsigrok.git gwinstek-gpd: Drop some unneeded debug logs. --- diff --git a/src/hardware/gwinstek-gpd/api.c b/src/hardware/gwinstek-gpd/api.c index 06e3d60d..79688afb 100644 --- a/src/hardware/gwinstek-gpd/api.c +++ b/src/hardware/gwinstek-gpd/api.c @@ -223,11 +223,6 @@ static int config_get(uint32_t key, GVariant **data, int ret, channel; const struct dev_context *devc; const struct sr_channel *ch; - const struct sr_key_info *ki; - - ki = sr_key_info_get(SR_KEY_CONFIG, key); - - sr_info("%s(%d, %s)", __func__, key, (ki != NULL) ? ki->name : NULL); if (!sdi) return SR_ERR_ARG; @@ -249,8 +244,6 @@ static int config_get(uint32_t key, GVariant **data, } else { ch = cg->channels->data; channel = ch->index; - sr_info("%s(%d, %s, %d)", __func__, key, - (ki != NULL) ? ki->name : NULL, channel); ret = SR_OK; switch (key) { case SR_CONF_VOLTAGE: @@ -287,7 +280,6 @@ static int config_set(uint32_t key, GVariant *data, struct dev_context *devc; devc = sdi->priv; - sr_info("%s(%d)", __func__, key); ret = SR_OK; @@ -378,7 +370,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi) struct dev_context *devc; struct sr_serial_dev_inst *serial; - sr_info("%s()", __func__); devc = sdi->priv; sr_sw_limits_acquisition_start(&devc->limits); diff --git a/src/hardware/gwinstek-gpd/protocol.c b/src/hardware/gwinstek-gpd/protocol.c index 827135e0..ba69fed4 100644 --- a/src/hardware/gwinstek-gpd/protocol.c +++ b/src/hardware/gwinstek-gpd/protocol.c @@ -118,7 +118,6 @@ SR_PRIV int gpd_receive_data(int fd, int revents, void *cb_data) serial = sdi->conn; if (revents == G_IO_IN) { - sr_dbg("%s(G_IO_IN)", __func__); if (!devc->reply_pending) { sr_err("No reply pending."); gpd_receive_reply(serial, reply, sizeof(reply)); @@ -183,7 +182,6 @@ SR_PRIV int gpd_receive_data(int fd, int revents, void *cb_data) devc->reply_pending = FALSE; } } else { - sr_dbg("%s(TIMEOUT)", __func__); if (!devc->reply_pending) { for (i = 0; i < devc->model->num_channels; i++) gpd_send_cmd(serial, "IOUT%d?\nVOUT%d?\n",