diff options
| author | christos <christos@NetBSD.org> | 2013-10-16 17:31:28 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2013-10-16 17:31:28 +0000 |
| commit | 82c4de82727bbdabcfeb2ef739390d04f4242a78 (patch) | |
| tree | bf030f5089e41a20af866c2d41a76669cdd679b5 /sys/dev | |
| parent | 5616018b7f74315cf527892cce6ea846ae7dd27b (diff) | |
print a warning if we failed.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/acpi/acpi_pci_link.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/acpi/acpi_pci_link.c b/sys/dev/acpi/acpi_pci_link.c index 1d41409098e..deaf723a4af 100644 --- a/sys/dev/acpi/acpi_pci_link.c +++ b/sys/dev/acpi/acpi_pci_link.c @@ -1,4 +1,4 @@ -/* $NetBSD: acpi_pci_link.c,v 1.19 2012/09/23 00:26:25 chs Exp $ */ +/* $NetBSD: acpi_pci_link.c,v 1.20 2013/10/16 17:31:28 christos Exp $ */ /*- * Copyright (c) 2002 Mitsuru IWASAKI <iwasaki@jp.freebsd.org> @@ -27,7 +27,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: acpi_pci_link.c,v 1.19 2012/09/23 00:26:25 chs Exp $"); +__KERNEL_RCSID(0, "$NetBSD: acpi_pci_link.c,v 1.20 2013/10/16 17:31:28 christos Exp $"); #include <sys/param.h> #include <sys/malloc.h> @@ -903,6 +903,10 @@ acpi_pci_link_srs(struct acpi_pci_link_softc *sc, ACPI_BUFFER *srsbuf) else status = acpi_pci_link_srs_from_crs(sc, srsbuf); + if (ACPI_FAILURE(status)) + printf("%s: Unable to find link srs : %s\n", + sc->pl_name, AcpiFormatException(status)); + /* Write out new resources via _SRS. */ return AcpiSetCurrentResources(sc->pl_handle, srsbuf); } |
