summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.examples
diff options
context:
space:
mode:
authorTim Moore <timoore@redhat.com>2009-12-04 14:11:25 +0100
committerTim Moore <timoore@redhat.com>2009-12-04 14:11:25 +0100
commit52cf0905d93c33f7d6f768478572ea08df4c8af0 (patch)
tree5fa6111add3d1a18e0edcef84bc189371b4efa6e /testsuite/systemtap.examples
parent5ddc5963ce06ecea574e90ca503a3ee598522d8f (diff)
downloadsystemtap-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')
-rwxr-xr-xtestsuite/systemtap.examples/general/grapher.stp4
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)
}