Minor cleanup in linux_proc_attach_tgid_threads

linux_proc_attach_tgid_threads computes a file name, and then
re-computes it for a warning.  It is better to reuse the
already-computed name here.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
Tom Tromey 2023-09-07 09:03:43 -06:00
parent 9d8fc40eb0
commit 31141b5520

View File

@ -287,7 +287,7 @@ linux_proc_attach_tgid_threads (pid_t pid,
dir = opendir (pathname); dir = opendir (pathname);
if (dir == NULL) if (dir == NULL)
{ {
warning (_("Could not open /proc/%ld/task."), (long) pid); warning (_("Could not open %s."), pathname);
return; return;
} }