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.
+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):
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");