From: poljar (Damir Jelić) Date: Tue, 28 Jan 2014 16:13:00 +0000 (+0100) Subject: scpi: Limit the log message in get_string() to 70 characters. X-Git-Tag: libsigrok-0.3.0~181 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=1c873c114cdf67b2cffa78293611d8f8f275bab8;p=libsigrok.git scpi: Limit the log message in get_string() to 70 characters. --- diff --git a/hardware/common/scpi.c b/hardware/common/scpi.c index 29a24dd2..e188946d 100644 --- a/hardware/common/scpi.c +++ b/hardware/common/scpi.c @@ -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; }