All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cocci] coccilib.report.print_report Broken For Redirected STDOUT
@ 2017-02-11 19:13 Michael Stefaniuc
  2017-02-11 19:20 ` Julia Lawall
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Stefaniuc @ 2017-02-11 19:13 UTC (permalink / raw)
  To: cocci

Hello!

coccilib.report.print_report is not producing any output when STDOUT is
redirected to a file or a pipe. I have attached a simple test case.

spatch cocciprint.cocci cocciprint.c
cocciprint.c:3:8-9: Printing Suceeded

spatch cocciprint.cocci cocciprint.c  > /tmp/nothing
wc -c /tmp/nothing
0 /tmp/nothing


thanks
bye
	michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cocciprint.c
Type: text/x-csrc
Size: 42 bytes
Desc: not available
URL: <https://systeme.lip6.fr/pipermail/cocci/attachments/20170211/5020f4c4/attachment.bin>
-------------- next part --------------
@r@
identifier i;
position p;
@@
 int i at p;


@ script:python @
p << r.p;
@@
coccilib.report.print_report(p[0], "Printing Suceeded")

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-02-13  9:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-11 19:13 [Cocci] coccilib.report.print_report Broken For Redirected STDOUT Michael Stefaniuc
2017-02-11 19:20 ` Julia Lawall
2017-02-12  0:23   ` Thierry Martinez
2017-02-13  9:47     ` Michael Stefaniuc

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.