Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Mar 2026 03:22:05 +0000
From:      Aymeric Wibo <obiwac@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 66447abae8bb - main - acpi: Print sysctl name in deprecated sleep type warning
Message-ID:  <69be0edd.1c1d2.5d2c5ade@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by obiwac:

URL: https://cgit.FreeBSD.org/src/commit/?id=66447abae8bb5d2e7b09a72bdea95033d9b1867a

commit 66447abae8bb5d2e7b09a72bdea95033d9b1867a
Author:     Aymeric Wibo <obiwac@FreeBSD.org>
AuthorDate: 2026-03-21 03:15:03 +0000
Commit:     Aymeric Wibo <obiwac@FreeBSD.org>
CommitDate: 2026-03-21 03:21:45 +0000

    acpi: Print sysctl name in deprecated sleep type warning
    
    Reported by:    markj
    Fixes:          97d152698f48 ("acpi: Use sleep types defined in sys/power.h")
    Event:          AsiaBSDCon 2026
    Sponsored by:   The FreeBSD Foundation
---
 sys/dev/acpica/acpi.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c
index 01b584ec30aa..98578b383f42 100644
--- a/sys/dev/acpica/acpi.c
+++ b/sys/dev/acpica/acpi.c
@@ -4608,9 +4608,9 @@ acpi_stype_sysctl(SYSCTL_HANDLER_ARGS)
 	    sstate = acpi_sname_to_sstate(name);
 	    if (sstate < 0)
 		return (EINVAL);
-	    printf("warning: this sysctl expects a sleep type, but an ACPI "
-	           "S-state has been passed to it. This functionality is "
-	           "deprecated; see acpi(4).\n");
+	    printf("warning: the 'hw.acpi.%s' sysctl expects a sleep type, but "
+	           "an ACPI S-state has been passed to it. This functionality "
+	           "is deprecated; see acpi(4).\n", oidp->oid_name);
 	    MPASS(sstate < ACPI_S_STATE_COUNT);
 	    if (acpi_supported_sstates[sstate] == false)
 		return (EOPNOTSUPP);


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69be0edd.1c1d2.5d2c5ade>