From 31141b552026de77f737c92c7a41789102bae8dc Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 7 Sep 2023 09:03:43 -0600 Subject: 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 --- gdb/nat/linux-procfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb') diff --git a/gdb/nat/linux-procfs.c b/gdb/nat/linux-procfs.c index 9c2d1be..95ecae4 100644 --- a/gdb/nat/linux-procfs.c +++ b/gdb/nat/linux-procfs.c @@ -287,7 +287,7 @@ linux_proc_attach_tgid_threads (pid_t pid, dir = opendir (pathname); if (dir == NULL) { - warning (_("Could not open /proc/%ld/task."), (long) pid); + warning (_("Could not open %s."), pathname); return; } -- cgit v1.1