Patch from Serge Belyshev.
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Apr 2004 06:28:59 +0000 (06:28 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Apr 2004 06:28:59 +0000 (06:28 +0000)
PR 14944
* coverage.c (read_counts_file): Fix usage of warning () call.
* pretty-print.c (pp_base_format_text): Fix typo in the comment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81276 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 317e6fe..f6c618e 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2004-04-28  Ben Elliston  <bje@au.ibm.com>
 
        * doc/invoke.texi (Objective-C Dialect Options): Don't prefix
index ccc8339..1912c34 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 86d4cb8..bb1e72f 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)