From 04aa8f0d6caa65cf188fe6e5a822c2d9bcbf2b67 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 4 Feb 2009 15:18:51 +0000 Subject: [PATCH] PR 9812 * reduced_debug_output.h (Output_reduced_debug_abbrev_section::failed): Use format for gold_warning. (Output_reduced_debug_info_section::faild): Likewise. --- gold/ChangeLog | 8 ++++++++ gold/reduced_debug_output.h | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gold/ChangeLog b/gold/ChangeLog index 87543b508e..b6a7d844a2 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,11 @@ +2009-02-04 Duncan Sands + + PR 9812 + * reduced_debug_output.h + (Output_reduced_debug_abbrev_section::failed): Use format for + gold_warning. + (Output_reduced_debug_info_section::faild): Likewise. + 2009-01-31 Mikolaj Zalewski * script.cc (Lazy_demangler): New class. diff --git a/gold/reduced_debug_output.h b/gold/reduced_debug_output.h index bd8da2237c..d1682288c3 100644 --- a/gold/reduced_debug_output.h +++ b/gold/reduced_debug_output.h @@ -64,7 +64,7 @@ class Output_reduced_debug_abbrev_section : public Output_section void failed(std::string reason) { - gold_warning(reason.c_str()); + gold_warning("%s", reason.c_str()); failed_ = true; } @@ -110,7 +110,7 @@ class Output_reduced_debug_info_section : public Output_section void failed(std::string reason) { - gold_warning(reason.c_str()); + gold_warning("%s", reason.c_str()); this->failed_ = true; } -- 2.11.0