diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2018-08-10 18:01:11 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2018-08-10 18:01:11 -0400 |
commit | a9925d4f9982ad897bc85f98076e5924e70232b1 (patch) | |
tree | 8c850c2e33cc4b8062a4e76adbd6863612cf2fab /gdb/nat | |
parent | 48e30f5238c70e738f44474d595c476ef4e4ec38 (diff) | |
download | gdb-a9925d4f9982ad897bc85f98076e5924e70232b1.zip gdb-a9925d4f9982ad897bc85f98076e5924e70232b1.tar.gz gdb-a9925d4f9982ad897bc85f98076e5924e70232b1.tar.bz2 |
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.
Diffstat (limited to 'gdb/nat')
-rw-r--r-- | gdb/nat/linux-osdata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/nat/linux-osdata.c b/gdb/nat/linux-osdata.c index 9850cad..7d603a6 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"); |