radv/debug: use common path for dmesg and tail

popen does not find the command when the full path
is not specified.

Chose /bin as the main location for both dmesg and tail to keep
compatibility with old distribution and possible embedded rootfs.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35087>
This commit is contained in:
Stéphane Cerveau 2025-05-21 12:28:35 +02:00 committed by Marge Bot
parent 524733a990
commit 72a1c4ffb2

View file

@ -739,7 +739,7 @@ static void
radv_dump_dmesg(FILE *f)
{
fprintf(f, "\nLast 60 lines of dmesg:\n\n");
radv_dump_cmd("dmesg | tail -n60", f);
radv_dump_cmd("/bin/dmesg | /bin/tail -n60", f);
}
void