summaryrefslogtreecommitdiffstats
path: root/translate.cxx
diff options
context:
space:
mode:
authorDavid Smith <dsmith@redhat.com>2009-08-17 12:27:15 -0500
committerDavid Smith <dsmith@redhat.com>2009-08-17 12:27:15 -0500
commitc1969f1b4b2d9d9a86dafc4a417e42f879b5f647 (patch)
tree9631d8deb8d011c799e27ce94a088f831432603a /translate.cxx
parentc95eddf7e5ef5b2c8f9f804eeb34a7663ccdb0a3 (diff)
downloadsystemtap-steved-c1969f1b4b2d9d9a86dafc4a417e42f879b5f647.tar.gz
systemtap-steved-c1969f1b4b2d9d9a86dafc4a417e42f879b5f647.tar.xz
systemtap-steved-c1969f1b4b2d9d9a86dafc4a417e42f879b5f647.zip
Unlocks global variables, then calls _stp_print_flush().
* translate.cxx (c_unparser::emit_probe): Unlocks global variables, then calls _stp_print_flush() (instead of the other way around).
Diffstat (limited to 'translate.cxx')
-rw-r--r--translate.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/translate.cxx b/translate.cxx
index 69b16304..8d20e8f6 100644
--- a/translate.cxx
+++ b/translate.cxx
@@ -1654,13 +1654,13 @@ c_unparser::emit_probe (derived_probe* v)
// NB: no need to uninitialize locals, except if arrays/stats can
// someday be local
- // XXX: do this flush only if the body included a
- // print/printf/etc. routine!
- o->newline(1) << "_stp_print_flush();";
-
+ o->indent(1);
if (v->needs_global_locks ())
emit_unlocks (vut);
+ // XXX: do this flush only if the body included a
+ // print/printf/etc. routine!
+ o->newline() << "_stp_print_flush();";
o->newline(-1) << "}\n";
}