summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2004-07-13 18:59:49 +0000
committernjl <njl@FreeBSD.org>2004-07-13 18:59:49 +0000
commit17a59e7b09edbefc271ac53db430cb163f813c9a (patch)
treed11f07023b19f9e71cbafc5c30c342f64fcc06fd /sys/dev/acpica
parent3b1eaf7f0d34d3f9145cdd339e7503cfeb616df4 (diff)
downloadFreeBSD-src-17a59e7b09edbefc271ac53db430cb163f813c9a.zip
FreeBSD-src-17a59e7b09edbefc271ac53db430cb163f813c9a.tar.gz
Clean up our pnpinfo and location strings.
Diffstat (limited to 'sys/dev/acpica')
-rw-r--r--sys/dev/acpica/acpi.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c
index 1614d53..f9295e2 100644
--- a/sys/dev/acpica/acpi.c
+++ b/sys/dev/acpica/acpi.c
@@ -683,9 +683,9 @@ acpi_child_location_str_method(device_t cbdev, device_t child, char *buf,
struct acpi_device *dinfo = device_get_ivars(child);
if (dinfo->ad_handle)
- snprintf(buf, buflen, "path=%s", acpi_name(dinfo->ad_handle));
+ snprintf(buf, buflen, "handle=%s", acpi_name(dinfo->ad_handle));
else
- snprintf(buf, buflen, "magic=unknown");
+ snprintf(buf, buflen, "unknown");
return (0);
}
@@ -702,16 +702,14 @@ acpi_child_pnpinfo_str_method(device_t cbdev, device_t child, char *buf,
error = AcpiGetObjectInfo(dinfo->ad_handle, &adbuf);
adinfo = (ACPI_DEVICE_INFO *) adbuf.Pointer;
-
if (error)
- snprintf(buf, buflen, "Unknown");
+ snprintf(buf, buflen, "unknown");
else
- snprintf(buf, buflen, "_HID=%s _UID=%lu",
+ snprintf(buf, buflen, "_HID=%s _UID=%lu",
(adinfo->Valid & ACPI_VALID_HID) ?
- adinfo->HardwareId.Value : "UNKNOWN",
+ adinfo->HardwareId.Value : "none",
(adinfo->Valid & ACPI_VALID_UID) ?
strtoul(adinfo->UniqueId.Value, &end, 10) : 0);
-
if (adinfo)
AcpiOsFree(adinfo);
OpenPOWER on IntegriCloud