Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/acpi PR/30720: Nicolas Joly: compilation failure wit...
details: https://anonhg.NetBSD.org/src/rev/3dbff67a81ea
branches: trunk
changeset: 582917:3dbff67a81ea
user: christos <christos%NetBSD.org@localhost>
date: Mon Jul 11 14:40:00 2005 +0000
description:
PR/30720: Nicolas Joly: compilation failure with ACPI_FDC_DEBUG
diffstat:
sys/dev/acpi/fdc_acpi.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (37 lines):
diff -r 48b815c1dd0c -r 3dbff67a81ea sys/dev/acpi/fdc_acpi.c
--- a/sys/dev/acpi/fdc_acpi.c Mon Jul 11 13:14:49 2005 +0000
+++ b/sys/dev/acpi/fdc_acpi.c Mon Jul 11 14:40:00 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdc_acpi.c,v 1.24 2005/05/29 20:56:02 christos Exp $ */
+/* $NetBSD: fdc_acpi.c,v 1.25 2005/07/11 14:40:00 christos Exp $ */
/*
* Copyright (c) 2002 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fdc_acpi.c,v 1.24 2005/05/29 20:56:02 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fdc_acpi.c,v 1.25 2005/07/11 14:40:00 christos Exp $");
#include "rnd.h"
@@ -236,15 +236,15 @@
ACPI_BUFFER abuf;
ACPI_STATUS rv;
UINT32 *p;
- int i, drives = -1;
+ int i, drives;
rv = acpi_eval_struct(asc->sc_node->ad_handle, "_FDE", &abuf);
if (ACPI_FAILURE(rv)) {
#ifdef ACPI_FDC_DEBUG
printf("%s: failed to evaluate _FDE: %s\n",
- sc->sc_dev.dv_xname, rv, AcpiFormatException(rv));
+ sc->sc_dev.dv_xname, AcpiFormatException(rv));
#endif
- return drives;
+ return -1;
}
fde = (ACPI_OBJECT *)abuf.Pointer;
if (fde->Type != ACPI_TYPE_BUFFER) {
Home |
Main Index |
Thread Index |
Old Index