]> sigrok.org Git - libsigrok.git/commitdiff
scpi: Limit the log message in get_string() to 70 characters.
authorpoljar (Damir Jelić) <redacted>
Tue, 28 Jan 2014 16:13:00 +0000 (17:13 +0100)
committerBert Vermeulen <redacted>
Tue, 28 Jan 2014 20:25:34 +0000 (21:25 +0100)
hardware/common/scpi.c

index 29a24dd2ec61f645f597073295500026da991ba2..e188946d81e52c1005ee409bdb2be504e7dd4b88 100644 (file)
@@ -319,7 +319,7 @@ SR_PRIV int sr_scpi_get_string(struct sr_scpi_dev_inst *scpi,
        *scpi_response = response->str;
        g_string_free(response, FALSE);
 
-       sr_spew("Got response: '%s'.", *scpi_response);
+       sr_spew("Got response: '%.70s'.", *scpi_response);
 
        return SR_OK;
 }