This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

fix PR 14944


This is trivial fix for PR 14944.

2004-04-13  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.

--- coverage.c.~1.33.~	2004-03-24 02:47:35.000000000 +0300
+++ coverage.c	2004-04-13 23:13:01.510217816 +0400
@@ -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;
     }
--- pretty-print.c.~2.10.~	2004-03-27 07:59:16.000000000 +0300
+++ pretty-print.c	2004-04-13 23:14:50.101709400 +0400
@@ -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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]