Fix incorrect string_printf use in utils.c
authorTom Tromey <tom@tromey.com>
Tue, 3 Oct 2017 14:26:16 +0000 (08:26 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 3 Oct 2017 14:26:16 +0000 (08:26 -0600)
I made a mistake earlier and used string_printf where I should have used
string_vprintf.

I'm checking this in as obvious.

2017-10-03  Tom Tromey  <tom@tromey.com>

* utils.c (internal_vproblem): Use string_vprintf.

gdb/ChangeLog
gdb/utils.c

index 439df4a5f5d445d98639e2b2485a2aa8a23aea3e..6e135f2a03cfea76bc310738bb8f149b31e504e2 100644 (file)
@@ -1,3 +1,7 @@
+2017-10-03  Tom Tromey  <tom@tromey.com>
+
+       * utils.c (internal_vproblem): Use string_vprintf.
+
 2017-10-03  Tom Tromey  <tom@tromey.com>
 
        * printcmd.c (info_symbol_command): Use std::string.
index 03b66c4f9e6d618a39fc9e86165baf203c5d35d3..118fcc3e6d048afab58dba0d3162bd70608a6dce 100644 (file)
@@ -425,7 +425,7 @@ internal_vproblem (struct internal_problem *problem,
      style similar to a compiler error message.  Include extra detail
      so that the user knows that they are living on the edge.  */
   {
-    std::string msg = string_printf (fmt, ap);
+    std::string msg = string_vprintf (fmt, ap);
     reason = string_printf ("%s:%d: %s: %s\n"
                            "A problem internal to GDB has been detected,\n"
                            "further debugging may prove unreliable.",
This page took 0.034898 seconds and 4 git commands to generate.