From: Uwe Hermann Date: Fri, 22 Jun 2012 15:47:11 +0000 (+0200) Subject: cli: Add missing fflush(stdout) for PD annotation output. X-Git-Tag: sigrok-cli-0.4.0~103 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=5befb6d6d9bdd1e16eac6a77512e93bdb1997197;p=sigrok-cli.git 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 --- 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)