From 1c873c114cdf67b2cffa78293611d8f8f275bab8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?poljar=20=28Damir=20Jeli=C4=87=29?= Date: Tue, 28 Jan 2014 17:13:00 +0100 Subject: [PATCH] scpi: Limit the log message in get_string() to 70 characters. --- hardware/common/scpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }