From 41bc9e4f7d6521c05d9226f4f2e38f779d984e6c Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Sun, 15 Jan 2012 23:24:30 +0100 Subject: [PATCH] CLI: print sample numbers on annotations on log level > 2 --- sigrok-cli.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sigrok-cli.c b/sigrok-cli.c index 73f0a13..7354ca8 100644 --- a/sigrok-cli.c +++ b/sigrok-cli.c @@ -535,6 +535,8 @@ void show_pd_annotation(struct srd_proto_data *pdata) return; } + if (opt_loglevel > SR_LOG_WARN) + printf("%"PRIu64"-%"PRIu64" ", pdata->start_sample, pdata->end_sample); printf("%s: ", pdata->pdo->proto_id); for (i = 0; annotations[i]; i++) printf("\"%s\" ", annotations[i]); -- 2.30.2