]> sourceware.org Git - systemtap.git/commitdiff
PR3823: fix accidental whitespace included in type mismatch messages for i18n
authorFrank Ch. Eigler <fche@redhat.com>
Tue, 11 Oct 2011 13:39:56 +0000 (09:39 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Tue, 11 Oct 2011 13:40:55 +0000 (09:40 -0400)
* elaborate.cxx (typeresolution_info::mismatch): eliminate excess space.

Reported-by: Petr Muller <pmuller@redhat.com> and the fine fujitsu testsuite
elaborate.cxx

index 194460f12a18fb77b34c8910b8cc3a68e446df6d..5655444d334b400dfdc20d56753e72f25236e8bc 100644 (file)
@@ -4912,7 +4912,7 @@ typeresolution_info::mismatch (const token* tok, exp_type t1, exp_type t2)
        }
       if (!tok_resolved)
        {
-          msg << _F("type mismatch ( %s vs. %s )",
+          msg << _F("type mismatch (%s vs. %s)",
                     lex_cast(t1).c_str(), lex_cast(t2).c_str());
        }
       else
@@ -4926,14 +4926,14 @@ typeresolution_info::mismatch (const token* tok, exp_type t1, exp_type t2)
                  break;
                }
            }
-          msg << _F("type mismatch ( %s vs. %s )",
+          msg << _F("type mismatch (%s vs. %s)",
                     lex_cast(t1).c_str(), lex_cast(t2).c_str());
          if (!tok_printed)
            {
              //error for possible mismatch in the earlier resolved token
              printed_toks.push_back (resolved_toks[i]);
              stringstream type_msg;
-              type_msg << _F("type was first inferred here ( %s )", lex_cast(t2).c_str());
+              type_msg << _F("type was first inferred here (%s)", lex_cast(t2).c_str());
              err1 = new semantic_error (type_msg.str(), resolved_toks[i]);
            }
        }
This page took 0.035516 seconds and 5 git commands to generate.