diff options
author | Tim Moore <timoore@redhat.com> | 2009-12-04 14:11:25 +0100 |
---|---|---|
committer | Tim Moore <timoore@redhat.com> | 2009-12-04 14:11:25 +0100 |
commit | 52cf0905d93c33f7d6f768478572ea08df4c8af0 (patch) | |
tree | 5fa6111add3d1a18e0edcef84bc189371b4efa6e /testsuite/systemtap.examples/general/grapher.stp | |
parent | 5ddc5963ce06ecea574e90ca503a3ee598522d8f (diff) | |
download | systemtap-steved-52cf0905d93c33f7d6f768478572ea08df4c8af0.tar.gz systemtap-steved-52cf0905d93c33f7d6f768478572ea08df4c8af0.tar.xz systemtap-steved-52cf0905d93c33f7d6f768478572ea08df4c8af0.zip |
tweak multiline hover text to have proper interline spacing
* grapher/CairoWidget.cxx (CairoTextBox::draw): Use font information
to caculate legible spacing. Also change the font to something more
readable.
* testsuite/systemtap.examples/general/grapher.stp: Put carriage
returns in the right spots.
Diffstat (limited to 'testsuite/systemtap.examples/general/grapher.stp')
-rwxr-xr-x | testsuite/systemtap.examples/general/grapher.stp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/testsuite/systemtap.examples/general/grapher.stp b/testsuite/systemtap.examples/general/grapher.stp index c1c60437..baeeff5c 100755 --- a/testsuite/systemtap.examples/general/grapher.stp +++ b/testsuite/systemtap.examples/general/grapher.stp @@ -39,9 +39,11 @@ probe kernel.function("pty_write") { printf("pty %d ", gettimeofday_ms()) str = kernel_string($buf) for (i = 0; i < $count; ++i) { + if (i > 1) + printf("\n") # yes it's gross c = substr(str, i, 1) - printf("%s\n", text_str(c)) + printf("%s", text_str(c)) } printf("%c", 0) } |