]> sigrok.org Git - libsigrok.git/commitdiff
rigol-ds: Minor error reporting fix.
authorBert Vermeulen <redacted>
Wed, 4 Dec 2013 23:21:15 +0000 (00:21 +0100)
committerBert Vermeulen <redacted>
Wed, 4 Dec 2013 23:21:15 +0000 (00:21 +0100)
hardware/rigol-ds/api.c

index 201a6f5d79e9ea414b93f050d9e78338f115c6e1..8af03eb6970626e3482d3ef1d2b51cc7fafe179a 100644 (file)
@@ -242,16 +242,16 @@ static int probe_port(const char *resource, const char *serialcomm, GSList **dev
        *devices = NULL;
 
        if (strncmp(resource, usbtmc_prefix, strlen(usbtmc_prefix)) == 0) {
-               sr_dbg("Opening USBTMC device %s", resource);
+               sr_dbg("Opening USBTMC device %s.", resource);
                if (!(scpi = scpi_usbtmc_dev_inst_new(resource)))
                        return SR_ERR_MALLOC;
        } else if (strncmp(resource, tcp_prefix, strlen(tcp_prefix)) == 0) {
-               sr_dbg("Opening TCP connection %s", resource);
+               sr_dbg("Opening TCP connection %s.", resource);
                tokens = g_strsplit(resource + strlen(tcp_prefix), "/", 0);
                address = tokens[0];
                port = tokens[1];
                if (!address || !port || tokens[2]) {
-                       sr_dbg("Invalid parameters");
+                       sr_err("Invalid parameters.");
                        g_strfreev(tokens);
                        return SR_ERR_ARG;
                }
@@ -260,7 +260,7 @@ static int probe_port(const char *resource, const char *serialcomm, GSList **dev
                if (!scpi)
                        return SR_ERR_MALLOC;
        } else {
-               sr_dbg("Opening serial device %s", resource);
+               sr_dbg("Opening serial device %s.", resource);
                if (!(scpi = scpi_serial_dev_inst_new(resource, serialcomm)))
                        return SR_ERR_MALLOC;
        }