From 29f15d52cb1c2ab6b284ebe04f57f71bcffc5506 Mon Sep 17 00:00:00 2001 From: v1ne Date: Wed, 1 Apr 2020 16:15:36 +0200 Subject: [PATCH] ols: Display actual expanded sample instead of the raw sample While the raw sample is the actual received data, the expanded sample is the crucial data I as a developer am interested in seeing. At least if I assume that the sample expansion works. --- src/hardware/openbench-logic-sniffer/protocol.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hardware/openbench-logic-sniffer/protocol.c b/src/hardware/openbench-logic-sniffer/protocol.c index b9a4ffa2..bedf2950 100644 --- a/src/hardware/openbench-logic-sniffer/protocol.c +++ b/src/hardware/openbench-logic-sniffer/protocol.c @@ -463,7 +463,8 @@ SR_PRIV int ols_receive_data(int fd, int revents, void *cb_data) } } memcpy(devc->sample, devc->tmp_sample, 4); - sr_spew("Expanded sample: 0x%.8x.", sample); + sr_spew("Expanded sample: 0x%.2hhx%.2hhx%.2hhx%.2hhx ", + devc->sample[3], devc->sample[2], devc->sample[1], devc->sample[0]); } /* -- 2.30.2