From 5befb6d6d9bdd1e16eac6a77512e93bdb1997197 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Fri, 22 Jun 2012 17:47:11 +0200 Subject: [PATCH] cli: Add missing fflush(stdout) for PD annotation output. This is required/helpful to be able to pipe sigrok-cli PD output into other tools, like this: sigrok-cli -i ... -a ... | othertool --- sigrok-cli.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sigrok-cli.c b/sigrok-cli.c index 3bda158..ab8296e 100644 --- a/sigrok-cli.c +++ b/sigrok-cli.c @@ -923,6 +923,7 @@ void show_pd_annotations(struct srd_proto_data *pdata, void *cb_data) for (i = 0; annotations[i]; i++) printf("\"%s\" ", annotations[i]); printf("\n"); + fflush(stdout); } static int select_probes(struct sr_dev *dev) -- 2.30.2