From b19b1115e6b60338d025c660c8a1f05c1ef1e644 Mon Sep 17 00:00:00 2001 From: Tommi Komulainen Date: Thu, 17 Jan 2019 18:41:50 +0100 Subject: Fix some boost format strings Fixes: Error: boost::bad_format_string: format-string is ill-formed --- src/xact.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/xact.h') diff --git a/src/xact.h b/src/xact.h index b0a4417e..26e263fc 100644 --- a/src/xact.h +++ b/src/xact.h @@ -115,7 +115,7 @@ public: virtual string description() { if (pos) { std::ostringstream buf; - buf << _f("transaction at line %1") << pos->beg_line; + buf << _f("transaction at line %1%") % pos->beg_line; return buf.str(); } else { return string(_("generated transaction")); @@ -177,7 +177,7 @@ public: virtual string description() { if (pos) { std::ostringstream buf; - buf << _f("automated transaction at line %1") << pos->beg_line; + buf << _f("automated transaction at line %1%") % pos->beg_line; return buf.str(); } else { return string(_("generated automated transaction")); @@ -220,7 +220,7 @@ class period_xact_t : public xact_base_t virtual string description() { if (pos) { std::ostringstream buf; - buf << _f("periodic transaction at line %1") << pos->beg_line; + buf << _f("periodic transaction at line %1%") % pos->beg_line; return buf.str(); } else { return string(_("generated periodic transaction")); -- cgit v1.2.3