From: Tom Tromey Date: Thu, 7 Sep 2023 15:03:43 +0000 (-0600) Subject: Minor cleanup in linux_proc_attach_tgid_threads X-Git-Tag: binutils-2_42~747 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=31141b552026de77f737c92c7a41789102bae8dc;p=thirdparty%2Fbinutils-gdb.git 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 --- diff --git a/gdb/nat/linux-procfs.c b/gdb/nat/linux-procfs.c index 9c2d1beb91f..95ecae443e4 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; }