libsigrok/src
Soeren Apel 4d6d660b83 Logging: Filter out unwanted newlines
055804e89e changed the outgoing
SCPI message termination by always adding a newline. This results
in the following log output:

sr: [00:00.003102] scpi: Opening VXI device vxi/192.168.178.43.
sr: [00:00.005648] scpi_vxi: Successfully sent SCPI command: '*IDN?
'.
sr: [00:00.005931] scpi: Got response: 'YOKOGAWA,710130,91HC30402,F3.73', length 31.

This patch restores the previous unterminated SCPI message logging:

sr: [00:00.005462] scpi: Opening VXI device vxi/192.168.178.43.
sr: [00:00.007515] scpi_vxi: Successfully sent SCPI command: '*IDN?'.
sr: [00:00.007860] scpi: Got response: 'YOKOGAWA,710130,91HC30402,F3.73', length 31.

As it's located in the general logging mechanism, we deal with any
additional (and unwanted) newlines this way.
2016-06-26 18:57:24 +02:00
..
dmm dmm: Convert to SR_DF_ANALOG. 2016-06-16 15:05:00 +02:00
hardware rigol-ds: properly report which channel is enabled. 2016-06-26 18:57:24 +02:00
input input/wav: Convert to SR_DF_ANALOG. 2016-06-15 19:33:48 +02:00
lcr lcr: Convert to SR_DF_ANALOG. 2016-06-16 15:05:00 +02:00
modbus modbus: silence a build warning 2015-12-29 13:19:36 +01:00
output output/analog: Drop unused fancyprint() and si_printf(). 2016-06-17 15:13:12 +02:00
scale scale: Convert to SR_DF_ANALOG. 2016-06-15 19:33:48 +02:00
scpi scpi: Add support for arbitray/definite length block data retrieval 2016-05-16 23:35:10 +02:00
transform transform/scale: Drop support for SR_DF_ANALOG_OLD. 2016-06-17 15:13:12 +02:00
analog.c analog: Implement division for sr_rational 2016-05-16 23:35:10 +02:00
backend.c group all drivers into a single object 2016-06-18 15:40:32 +02:00
device.c Rename sr_dev_config_capabilities() to sr_dev_config_capabilities_list(). 2015-12-31 19:04:28 +01:00
drivers.c group all drivers into a single object 2016-06-18 15:40:32 +02:00
error.c Build: Include <config.h> first in all source files 2015-09-13 18:54:46 +02:00
ezusb.c drivers: Load firmware via new resource API 2015-10-01 15:44:55 +02:00
fallback.c Build: Include <config.h> first in all source files 2015-09-13 18:54:46 +02:00
hwdriver.c rigol-ds: add support for getting/setting trigger level. 2016-06-25 18:19:47 +02:00
libsigrok-internal.h group all drivers into a single object 2016-06-18 15:40:32 +02:00
log.c Logging: Filter out unwanted newlines 2016-06-26 18:57:24 +02:00
resource.c resource: Replace ssize_t with gssize to avoid unistd.h 2016-01-04 20:53:30 +01:00
scpi.h scpi: introduce some more requests 2016-05-16 23:35:10 +02:00
serial.c Build: Include <config.h> first in all source files 2015-09-13 18:54:46 +02:00
session.c session: Drop SR_DF_ANALOG_OLD support completely. 2016-06-17 15:13:12 +02:00
session_driver.c session_driver.c: Convert to SR_DF_ANALOG. 2016-06-17 15:13:12 +02:00
session_file.c Enable loading of session files without total probes defined 2016-03-28 01:06:29 +02:00
soft-trigger.c Build: Include <config.h> first in all source files 2015-09-13 18:54:46 +02:00
std.c std_serial_dev_acquisition_stop(): Remove dev_close_fn parameter 2016-05-31 15:54:52 +02:00
strutil.c strutil: add method to get an sr_rational from a string 2016-05-16 23:35:10 +02:00
sw_limits.c sw_limits: Log when the sample/time limit is reached. 2016-06-01 15:25:15 +02:00
trigger.c Build: Include <config.h> first in all source files 2015-09-13 18:54:46 +02:00
usb.c src/usb.c: Only allow hex characters in CONN_USB_VIDPID. 2015-12-29 13:21:01 +01:00
version.c Build: Include <config.h> first in all source files 2015-09-13 18:54:46 +02:00