]> sourceware.org Git - systemtap.git/commitdiff
Unlocks global variables, then calls _stp_print_flush().
authorDavid Smith <dsmith@redhat.com>
Mon, 17 Aug 2009 17:27:15 +0000 (12:27 -0500)
committerDavid Smith <dsmith@redhat.com>
Mon, 17 Aug 2009 17:27:15 +0000 (12:27 -0500)
* translate.cxx (c_unparser::emit_probe): Unlocks global variables, then
  calls _stp_print_flush() (instead of the other way around).

translate.cxx

index 69b163047c4cec7420120bc30ae6e4172dae3220..8d20e8f694dd1581bf35d3ccec3bcf707caae2b2 100644 (file)
@@ -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";
     }
 
This page took 0.038855 seconds and 5 git commands to generate.