Module Name:    src
Committed By:   christos
Date:           Wed Oct 16 17:31:28 UTC 2013

Modified Files:
        src/sys/dev/acpi: acpi_pci_link.c

Log Message:
print a warning if we failed.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/acpi/acpi_pci_link.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/acpi/acpi_pci_link.c
diff -u src/sys/dev/acpi/acpi_pci_link.c:1.19 src/sys/dev/acpi/acpi_pci_link.c:1.20
--- src/sys/dev/acpi/acpi_pci_link.c:1.19	Sat Sep 22 20:26:25 2012
+++ src/sys/dev/acpi/acpi_pci_link.c	Wed Oct 16 13:31:28 2013
@@ -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 <[email protected]>
@@ -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_s
 	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);
 }

Reply via email to