Fix forgotten xstrprintf -> string_printf change
authorSimon Marchi <simon.marchi@ericsson.com>
Fri, 10 Aug 2018 22:01:11 +0000 (18:01 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Fri, 10 Aug 2018 22:01:11 +0000 (18:01 -0400)
The patch

  528e157 ("Replace some uses of xstrprintf with string_printf")

forgot to actually change an xstrprintf call to string_printf, this one
fixes it.

gdb/ChangeLog:

* nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
with string_printf.

gdb/ChangeLog
gdb/nat/linux-osdata.c

index e046b64b5c60f3d706bdf88a54130713f666c69c..8559185eb89a843fbcaafad0af47cbfa6f8dc09f 100644 (file)
@@ -1,3 +1,8 @@
+2018-08-10  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
+       with string_printf.
+
 2018-08-10  Keith Seitz  <keiths@redhat.com>
 
        * compile/compile-c-support.c (add_code_header, add_code_footer):
index 9850cad235bd68eb2df6858dd28bd620743830ca..7d603a6b1b95f20210f74b643618ac93ff21c235 100644 (file)
@@ -150,7 +150,7 @@ command_from_pid (char *command, int maxlen, PID_T pid)
 static char *
 commandline_from_pid (PID_T pid)
 {
-  std::string pathname = xstrprintf ("/proc/%lld/cmdline", pid);
+  std::string pathname = string_printf ("/proc/%lld/cmdline", pid);
   char *commandline = NULL;
   gdb_file_up f = gdb_fopen_cloexec (pathname, "r");