From: Bert Vermeulen Date: Sun, 15 Jan 2012 22:24:30 +0000 (+0100) Subject: CLI: print sample numbers on annotations on log level > 2 X-Git-Tag: sigrok-cli-0.3.0~65 X-Git-Url: http://sigrok.org/gitweb/?p=sigrok-cli.git;a=commitdiff_plain;h=41bc9e4f7d6521c05d9226f4f2e38f779d984e6c CLI: print sample numbers on annotations on log level > 2 --- 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]);