Date: Tue, 19 Apr 2022 12:46:07 GMT From: Mateusz Guzik <mjg@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 93494e425b95 - main - linux: plug a set-but-not-used var Message-ID: <202204191246.23JCk73s030453@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=93494e425b95e3b08e11389c877b71298b6a244e commit 93494e425b95e3b08e11389c877b71298b6a244e Author: Mateusz Guzik <mjg@FreeBSD.org> AuthorDate: 2022-04-19 12:29:46 +0000 Commit: Mateusz Guzik <mjg@FreeBSD.org> CommitDate: 2022-04-19 12:45:57 +0000 linux: plug a set-but-not-used var Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/compat/linux/linux_sysctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/compat/linux/linux_sysctl.c b/sys/compat/linux/linux_sysctl.c index e722280a2bbf..36f76c088ca3 100644 --- a/sys/compat/linux/linux_sysctl.c +++ b/sys/compat/linux/linux_sysctl.c @@ -163,7 +163,7 @@ linux_sysctl(struct thread *td, struct linux_sysctl_args *args) sbuf_printf(sb, "} is not implemented"); sbuf_finish(sb); sysctl_string = sbuf_data(sb); - linux_msg(td, "%s", sbuf_data(sb)); + linux_msg(td, "%s", sysctl_string); LIN_SDT_PROBE1(sysctl, linux_sysctl, unsupported_sysctl, sysctl_string); sbuf_delete(sb);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204191246.23JCk73s030453>