]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Backport patch from Serge Belyshev
authorGabriel Dos Reis <gdr@integrable-solutions.net>
Tue, 28 Feb 2006 09:12:47 +0000 (09:12 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Tue, 28 Feb 2006 09:12:47 +0000 (09:12 +0000)
From-SVN: r111561

gcc/ChangeLog
gcc/coverage.c
gcc/pretty-print.c

index 8db2fb33fe4c179ee449a8c309ce6f640728eed4..53e0e661c111a6633375807f5a579975fed795f0 100644 (file)
@@ -1,3 +1,12 @@
+2006-02-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
+
+       * Backport
+       2004-04-28  Serge Belyshev  <1319@bot.ru>
+       
+       PR 14944
+       * coverage.c (read_counts_file): Fix usage of warning () call.
+       * pretty-print.c (pp_base_format_text): Fix typo in the comment.
+
 2006-02-18  Olivier Hainque  <hainque@adacore.com>
 
        PR ada/13408
index 395c1e4de55d2ba66d950bf30f9277697beede6d..85ba608380b73c147411b326a7b2083179d8f104 100644 (file)
@@ -172,8 +172,8 @@ read_counts_file (void)
       GCOV_UNSIGNED2STRING (v, tag);
       GCOV_UNSIGNED2STRING (e, GCOV_VERSION);
 
-      warning ("`%s' is version `%.4s', expected version `%.4s'",
-              da_file_name, v, e);
+      warning ("`%s' is version `%.*s', expected version `%.*s'",
+              da_file_name, 4, v, 4, e);
       gcov_close ();
       return;
     }
index 993fde7a6d691fe6ca6fcf1ed7e44366d71cf2a5..9e3fbba6b554f253509f3f5b3bfe97d508e84de9 100644 (file)
@@ -178,7 +178,7 @@ pp_base_indent (pretty_printer *pp)
    %p: pointer.
    %m: strerror(text->err_no) - does not consume a value from args_ptr.
    %%: `%'.
-   %*.s: a substring the length of which is specified by an integer.
+   %.*s: a substring the length of which is specified by an integer.
    %H: location_t.  */
 void
 pp_base_format_text (pretty_printer *pp, text_info *text)