The branch main has been updated by mjg:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=93494e425b95e3b08e11389c877b71298b6a244e

commit 93494e425b95e3b08e11389c877b71298b6a244e
Author:     Mateusz Guzik <m...@freebsd.org>
AuthorDate: 2022-04-19 12:29:46 +0000
Commit:     Mateusz Guzik <m...@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);

Reply via email to