]> sigrok.org Git - sigrok-cli.git/commitdiff
CLI: print sample numbers on annotations on log level > 2
authorBert Vermeulen <redacted>
Sun, 15 Jan 2012 22:24:30 +0000 (23:24 +0100)
committerBert Vermeulen <redacted>
Sun, 15 Jan 2012 22:25:58 +0000 (23:25 +0100)
sigrok-cli.c

index 73f0a13f8f575ef0ffd52fd1fb0ea7a6a5d28ca4..7354ca848824bc4759b3241ca5670aa20b54df44 100644 (file)
@@ -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]);