From: Simon Marchi Date: Fri, 10 Aug 2018 22:01:11 +0000 (-0400) Subject: Fix forgotten xstrprintf -> string_printf change X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a9925d4f9982ad897bc85f98076e5924e70232b1;p=binutils-gdb.git Fix forgotten xstrprintf -> string_printf change 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e046b64b5c6..8559185eb89 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2018-08-10 Simon Marchi + + * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf + with string_printf. + 2018-08-10 Keith Seitz * compile/compile-c-support.c (add_code_header, add_code_footer): diff --git a/gdb/nat/linux-osdata.c b/gdb/nat/linux-osdata.c index 9850cad235b..7d603a6b1b9 100644 --- a/gdb/nat/linux-osdata.c +++ b/gdb/nat/linux-osdata.c @@ -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");