]> sigrok.org Git - libsigrok.git/commitdiff
gwinstek-gpd: Drop some unneeded debug logs.
authorUwe Hermann <redacted>
Thu, 14 Jun 2018 20:05:03 +0000 (22:05 +0200)
committerUwe Hermann <redacted>
Thu, 14 Jun 2018 20:48:26 +0000 (22:48 +0200)
src/hardware/gwinstek-gpd/api.c
src/hardware/gwinstek-gpd/protocol.c

index 06e3d60d69c23e85860abe89bfac56d2595e9fec..79688afb6595f7efacfde7df6c8e1c868cea96fd 100644 (file)
@@ -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);
index 827135e0f16a1c19071a046b5a9fb45d32799f80..ba69fed4a1fb052d22a3fab462bd24f64f25ee50 100644 (file)
@@ -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",