]> sourceware.org Git - systemtap.git/commitdiff
PR9896: Fix SystemTap build on Ubuntu Intrepid.
authorAnanth N Mavinakayanahalli <ananth@in.ibm.com>
Wed, 25 Feb 2009 10:18:50 +0000 (15:48 +0530)
committerAnanth N Mavinakayanahalli <ananth@in.ibm.com>
Wed, 25 Feb 2009 10:18:50 +0000 (15:48 +0530)
The gcc on Ubuntu doesn't like fprintf() without format arguments

tapsets.cxx

index 77e2efcc4512e79b393080df7f9146e89e667bf8..b2419b6263f41cae3d1069db286e38bec2b356e4 100644 (file)
@@ -2297,9 +2297,9 @@ struct dwflpp
     assert(memstream);
 
     fprintf(memstream, "{\n");
-    fprintf(memstream, prelude.c_str());
+    fprintf(memstream, "%s", prelude.c_str());
     bool deref = c_emit_location (memstream, head, 1);
-    fprintf(memstream, postlude.c_str());
+    fprintf(memstream, "%s", postlude.c_str());
     fprintf(memstream, "  goto out;\n");
 
     // dummy use of deref_fault label, to disable warning if deref() not used
This page took 0.036031 seconds and 5 git commands to generate.