This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/4591] println function
- From: "joshua dot i dot stone at intel dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 13 Aug 2007 23:47:16 -0000
- Subject: [Bug translator/4591] println function
- References: <20070604161405.4591.fche@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From joshua dot i dot stone at intel dot com 2007-08-13 23:47 -------
I think it would be easy to generalize this into a set of print variants that
should cover just about anyone. I propose adding two new suffix variants to
print-like statements: 'd' for delimited, and 'ln' (or perhaps just 'n') for
including a newline. With 'd', the first parameter must be a string literal
that will delimit the rest of the arguments. With 'ln', a newline is appended.
Bare print() and sprint() would be extended to allow multiple arguments, which
just get printed one-after-the-other.
So the complete list of print statements would be:
print, sprint, printf, sprintf, printd, sprintd,
println, sprintln, printdln, sprintdln
We have a special case of print(@hist_*) -- I'll leave that as-is.
Any comments? If there are no objections, I will implement this...
Josh
--
http://sourceware.org/bugzilla/show_bug.cgi?id=4591
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.