From bec508deffdb39affbd6e93a7ce1d2c92d653a12 Mon Sep 17 00:00:00 2001 From: Ananth N Mavinakayanahalli Date: Wed, 25 Feb 2009 15:48:50 +0530 Subject: [PATCH] PR9896: Fix SystemTap build on Ubuntu Intrepid. The gcc on Ubuntu doesn't like fprintf() without format arguments --- tapsets.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tapsets.cxx b/tapsets.cxx index 77e2efcc4..b2419b626 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -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 -- 2.43.5