Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/acpi print a warning if we failed.
details: https://anonhg.NetBSD.org/src/rev/dacba7d07e9d
branches: trunk
changeset: 790524:dacba7d07e9d
user: christos <christos%NetBSD.org@localhost>
date: Wed Oct 16 17:31:28 2013 +0000
description:
print a warning if we failed.
diffstat:
sys/dev/acpi/acpi_pci_link.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r fc766329bc96 -r dacba7d07e9d sys/dev/acpi/acpi_pci_link.c
--- a/sys/dev/acpi/acpi_pci_link.c Wed Oct 16 17:30:42 2013 +0000
+++ b/sys/dev/acpi/acpi_pci_link.c Wed Oct 16 17:31:28 2013 +0000
@@ -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@localhost>
@@ -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 @@
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);
}
Home |
Main Index |
Thread Index |
Old Index