summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/acpi/acpi.c10
-rw-r--r--sys/dev/acpi/acpi_ec.c6
-rw-r--r--sys/dev/acpi/acpi_madt.c12
-rw-r--r--sys/dev/acpi/acpi_powerres.c12
-rw-r--r--sys/dev/acpi/acpi_resource.c30
-rw-r--r--sys/dev/acpi/aiboost.c8
-rw-r--r--sys/dev/acpi/atk0110.c6
-rw-r--r--sys/dev/acpi/dalb_acpi.c6
-rw-r--r--sys/dev/acpi/fdc_acpi.c10
-rw-r--r--sys/dev/acpi/sony_acpi.c8
10 files changed, 54 insertions, 54 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c
index 35668266b0e..4f83b8a4ddd 100644
--- a/sys/dev/acpi/acpi.c
+++ b/sys/dev/acpi/acpi.c
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi.c,v 1.149 2010/02/24 22:37:56 dyoung Exp $ */
+/* $NetBSD: acpi.c,v 1.150 2010/03/02 18:44:46 jruoho Exp $ */
/*-
* Copyright (c) 2003, 2007 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.149 2010/02/24 22:37:56 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.150 2010/03/02 18:44:46 jruoho Exp $");
#include "opt_acpi.h"
#include "opt_pcifixup.h"
@@ -515,7 +515,7 @@ acpi_attach(device_t parent, device_t self, void *aux)
sc->sc_sleepstate = ACPI_STATE_S0;
/* Show SCI interrupt. */
- aprint_verbose_dev(self, "SCI interrupting at int %d\n",
+ aprint_verbose_dev(self, "SCI interrupting at int %u\n",
AcpiGbl_FADT.SciInterrupt);
/*
@@ -976,7 +976,7 @@ acpi_print(void *aux, const char *pnp)
aprint_normal("buffer %p ", obj->Buffer.Pointer);
break;
default:
- aprint_normal("type %d ",obj->Type);
+ aprint_normal("type %u ",obj->Type);
break;
}
ACPI_FREE(buf.Pointer);
@@ -1638,7 +1638,7 @@ acpi_allocate_resources(ACPI_HANDLE handle)
resn->Length = resp->Length;
break;
default:
- printf("acpi_allocate_resources: res=%d\n", resc->Type);
+ printf("acpi_allocate_resources: res=%u\n", resc->Type);
rv = AE_BAD_DATA;
goto out2;
}
diff --git a/sys/dev/acpi/acpi_ec.c b/sys/dev/acpi/acpi_ec.c
index acac541003f..2c418d40f8a 100644
--- a/sys/dev/acpi/acpi_ec.c
+++ b/sys/dev/acpi/acpi_ec.c
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_ec.c,v 1.60 2010/02/24 22:37:56 dyoung Exp $ */
+/* $NetBSD: acpi_ec.c,v 1.61 2010/03/02 18:44:46 jruoho Exp $ */
/*-
* Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>.
@@ -59,7 +59,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_ec.c,v 1.60 2010/02/24 22:37:56 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_ec.c,v 1.61 2010/03/02 18:44:46 jruoho Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -190,7 +190,7 @@ acpiecdt_find(device_t parent, ACPI_HANDLE *ec_handle,
if (ecdt->Control.BitWidth != 8 || ecdt->Data.BitWidth != 8) {
aprint_error_dev(parent,
- "ECDT register width invalid (%d/%d)\n",
+ "ECDT register width invalid (%u/%u)\n",
ecdt->Control.BitWidth, ecdt->Data.BitWidth);
return false;
}
diff --git a/sys/dev/acpi/acpi_madt.c b/sys/dev/acpi/acpi_madt.c
index 76e0a9d8c54..06c42c48d4d 100644
--- a/sys/dev/acpi/acpi_madt.c
+++ b/sys/dev/acpi/acpi_madt.c
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_madt.c,v 1.19 2008/01/07 06:04:07 tnn Exp $ */
+/* $NetBSD: acpi_madt.c,v 1.20 2010/03/02 18:44:47 jruoho Exp $ */
/*
* Copyright (c) 2003 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_madt.c,v 1.19 2008/01/07 06:04:07 tnn Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_madt.c,v 1.20 2010/03/02 18:44:47 jruoho Exp $");
#include <sys/param.h>
#include <sys/ioctl.h>
@@ -131,14 +131,14 @@ acpi_print_lapic_nmi(ACPI_MADT_LOCAL_APIC_NMI *p)
static void
acpi_print_lapic_ovr(ACPI_MADT_LOCAL_APIC_OVERRIDE *p)
{
- printf("lapic addr override: 0x%llx\n", (unsigned long long)p->Address);
+ printf("lapic addr override: 0x%"PRIx64"\n", p->Address);
}
static void
acpi_print_iosapic(ACPI_MADT_IO_SAPIC *p)
{
- printf("iosapic: sapid %u address 0x%llx int vector base 0x%x\n",
- p->Id, (unsigned long long)p->Address, p->GlobalIrqBase);
+ printf("iosapic: sapid %u address 0x%"PRIx64" int vector base 0x%x\n",
+ p->Id, p->Address, p->GlobalIrqBase);
}
static void
@@ -223,7 +223,7 @@ acpi_madt_print_entry(ACPI_SUBTABLE_HEADER *hdrp, void *aux)
acpi_print_platint((void *)hdrp);
break;
default:
- printf("Unknown MADT entry type %d\n", hdrp->Type);
+ printf("Unknown MADT entry type %u\n", hdrp->Type);
break;
}
return AE_OK;
diff --git a/sys/dev/acpi/acpi_powerres.c b/sys/dev/acpi/acpi_powerres.c
index 579e6fed01a..88fd30ae778 100644
--- a/sys/dev/acpi/acpi_powerres.c
+++ b/sys/dev/acpi/acpi_powerres.c
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_powerres.c,v 1.9 2010/01/18 18:36:50 jruoho Exp $ */
+/* $NetBSD: acpi_powerres.c,v 1.10 2010/03/02 18:44:47 jruoho Exp $ */
/*-
* Copyright (c) 2001 Michael Smith
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_powerres.c,v 1.9 2010/01/18 18:36:50 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_powerres.c,v 1.10 2010/03/02 18:44:47 jruoho Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -395,7 +395,7 @@ acpi_pwr_switch_consumer(ACPI_HANDLE consumer, int state)
}
reslist_object = (ACPI_OBJECT *)reslist_buffer.Pointer;
if (reslist_object->Type != ACPI_TYPE_PACKAGE) {
- ACPI_DEBUG_PRINT((ACPI_DB_OBJECTS, "resource list is not ACPI_TYPE_PACKAGE (%d)\n",
+ ACPI_DEBUG_PRINT((ACPI_DB_OBJECTS, "resource list is not ACPI_TYPE_PACKAGE (%u)\n",
reslist_object->Type));
status = AE_TYPE;
goto out;
@@ -423,7 +423,7 @@ acpi_pwr_switch_consumer(ACPI_HANDLE consumer, int state)
*/
if (reslist_object != NULL) {
ACPI_DEBUG_PRINT((ACPI_DB_OBJECTS,
- "referencing %d new resources\n",
+ "referencing %u new resources\n",
reslist_object->Package.Count));
acpi_foreach_package_object(reslist_object,
acpi_pwr_reference_resource, pc);
@@ -554,9 +554,9 @@ acpi_pwr_switch_power(void)
status = acpi_eval_integer(rp->ap_resource, "_STA", &cur);
if (ACPI_FAILURE(status)) {
ACPI_DEBUG_PRINT((ACPI_DB_OBJECTS,
- "can't get status of %s - %d\n",
+ "can't get status of %s - %s\n",
acpi_name(rp->ap_resource),
- status));
+ AcpiFormatException(status)));
/* XXX is this correct? Always switch if in doubt? */
continue;
}
diff --git a/sys/dev/acpi/acpi_resource.c b/sys/dev/acpi/acpi_resource.c
index 3e972366e03..36c89777c08 100644
--- a/sys/dev/acpi/acpi_resource.c
+++ b/sys/dev/acpi/acpi_resource.c
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_resource.c,v 1.30 2009/09/16 10:47:54 mlelstv Exp $ */
+/* $NetBSD: acpi_resource.c,v 1.31 2010/03/02 18:44:47 jruoho Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_resource.c,v 1.30 2009/09/16 10:47:54 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_resource.c,v 1.31 2010/03/02 18:44:47 jruoho Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -102,7 +102,7 @@ acpi_resource_parse_callback(ACPI_RESOURCE *res, void *context)
switch (res->Type) {
case ACPI_RESOURCE_TYPE_FIXED_IO:
ACPI_DEBUG_PRINT((ACPI_DB_RESOURCES,
- "FixedIo 0x%x/%d\n",
+ "FixedIo 0x%x/%u\n",
res->Data.FixedIo.Address,
res->Data.FixedIo.AddressLength));
if (ops->ioport)
@@ -115,7 +115,7 @@ acpi_resource_parse_callback(ACPI_RESOURCE *res, void *context)
if (res->Data.Io.Minimum ==
res->Data.Io.Maximum) {
ACPI_DEBUG_PRINT((ACPI_DB_RESOURCES,
- "Io 0x%x/%d\n",
+ "Io 0x%x/%u\n",
res->Data.Io.Minimum,
res->Data.Io.AddressLength));
if (ops->ioport)
@@ -124,7 +124,7 @@ acpi_resource_parse_callback(ACPI_RESOURCE *res, void *context)
res->Data.Io.AddressLength);
} else {
ACPI_DEBUG_PRINT((ACPI_DB_RESOURCES,
- "Io 0x%x-0x%x/%d\n",
+ "Io 0x%x-0x%x/%u\n",
res->Data.Io.Minimum,
res->Data.Io.Maximum,
res->Data.Io.AddressLength));
@@ -139,7 +139,7 @@ acpi_resource_parse_callback(ACPI_RESOURCE *res, void *context)
case ACPI_RESOURCE_TYPE_FIXED_MEMORY32:
ACPI_DEBUG_PRINT((ACPI_DB_RESOURCES,
- "FixedMemory32 0x%x/%d\n",
+ "FixedMemory32 0x%x/%u\n",
res->Data.FixedMemory32.Address,
res->Data.FixedMemory32.AddressLength));
if (ops->memory)
@@ -152,7 +152,7 @@ acpi_resource_parse_callback(ACPI_RESOURCE *res, void *context)
if (res->Data.Memory32.Minimum ==
res->Data.Memory32.Maximum) {
ACPI_DEBUG_PRINT((ACPI_DB_RESOURCES,
- "Memory32 0x%x/%d\n",
+ "Memory32 0x%x/%u\n",
res->Data.Memory32.Minimum,
res->Data.Memory32.AddressLength));
if (ops->memory)
@@ -161,7 +161,7 @@ acpi_resource_parse_callback(ACPI_RESOURCE *res, void *context)
res->Data.Memory32.AddressLength);
} else {
ACPI_DEBUG_PRINT((ACPI_DB_RESOURCES,
- "Memory32 0x%x-0x%x/%d\n",
+ "Memory32 0x%x-0x%x/%u\n",
res->Data.Memory32.Minimum,
res->Data.Memory32.Maximum,
res->Data.Memory32.AddressLength));
@@ -178,7 +178,7 @@ acpi_resource_parse_callback(ACPI_RESOURCE *res, void *context)
if (res->Data.Memory24.Minimum ==
res->Data.Memory24.Maximum) {
ACPI_DEBUG_PRINT((ACPI_DB_RESOURCES,
- "Memory24 0x%x/%d\n",
+ "Memory24 0x%x/%u\n",
res->Data.Memory24.Minimum,
res->Data.Memory24.AddressLength));
if (ops->memory)
@@ -187,7 +187,7 @@ acpi_resource_parse_callback(ACPI_RESOURCE *res, void *context)
res->Data.Memory24.AddressLength);
} else {
ACPI_DEBUG_PRINT((ACPI_DB_RESOURCES,
- "Memory24 0x%x-0x%x/%d\n",
+ "Memory24 0x%x-0x%x/%u\n",
res->Data.Memory24.Minimum,
res->Data.Memory24.Maximum,
res->Data.Memory24.AddressLength));
@@ -203,7 +203,7 @@ acpi_resource_parse_callback(ACPI_RESOURCE *res, void *context)
case ACPI_RESOURCE_TYPE_IRQ:
for (i = 0; i < res->Data.Irq.InterruptCount; i++) {
ACPI_DEBUG_PRINT((ACPI_DB_RESOURCES,
- "IRQ %d\n",
+ "IRQ %u\n",
res->Data.Irq.Interrupts[i]));
if (ops->irq)
(*ops->irq)(arg->dev, arg->context,
@@ -215,7 +215,7 @@ acpi_resource_parse_callback(ACPI_RESOURCE *res, void *context)
case ACPI_RESOURCE_TYPE_DMA:
for (i = 0; i < res->Data.Dma.ChannelCount; i++) {
ACPI_DEBUG_PRINT((ACPI_DB_RESOURCES,
- "DRQ %d\n",
+ "DRQ %u\n",
res->Data.Dma.Channels[i]));
if (ops->drq)
(*ops->drq)(arg->dev, arg->context,
@@ -225,7 +225,7 @@ acpi_resource_parse_callback(ACPI_RESOURCE *res, void *context)
case ACPI_RESOURCE_TYPE_START_DEPENDENT:
ACPI_DEBUG_PRINT((ACPI_DB_RESOURCES,
- "Start dependant functions: %d\n",
+ "Start dependant functions: %u\n",
res->Data.StartDpf.CompatibilityPriority));
if (ops->start_dep)
(*ops->start_dep)(arg->dev, arg->context,
@@ -304,7 +304,7 @@ acpi_resource_parse_callback(ACPI_RESOURCE *res, void *context)
}
for (i = 0; i < res->Data.ExtendedIrq.InterruptCount; i++) {
ACPI_DEBUG_PRINT((ACPI_DB_RESOURCES,
- "ExtIRQ %d\n",
+ "ExtIRQ %u\n",
res->Data.ExtendedIrq.Interrupts[i]));
if (ops->irq)
(*ops->irq)(arg->dev, arg->context,
@@ -325,7 +325,7 @@ acpi_resource_parse_callback(ACPI_RESOURCE *res, void *context)
default:
ACPI_DEBUG_PRINT((ACPI_DB_RESOURCES,
- "Unknown resource type: %d\n", res->Type));
+ "Unknown resource type: %u\n", res->Type));
break;
}
diff --git a/sys/dev/acpi/aiboost.c b/sys/dev/acpi/aiboost.c
index e735a831cbe..9781eda6473 100644
--- a/sys/dev/acpi/aiboost.c
+++ b/sys/dev/acpi/aiboost.c
@@ -1,4 +1,4 @@
-/* $NetBSD: aiboost.c,v 1.28 2010/02/18 13:52:33 pgoyette Exp $ */
+/* $NetBSD: aiboost.c,v 1.29 2010/03/02 18:44:47 jruoho Exp $ */
/*-
* Copyright (c) 2007 Juan Romero Pardines
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aiboost.c,v 1.28 2010/02/18 13:52:33 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aiboost.c,v 1.29 2010/03/02 18:44:47 jruoho Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -363,9 +363,9 @@ aiboost_getcomp(ACPI_HANDLE *h, const char *name, struct aiboost_comp **comp)
DPRINTF(("elem[%d]->Type = %x\n", i+1, elem->Type));
if (elem->Type == ACPI_TYPE_PACKAGE &&
elem->Package.Elements[0].Type == ACPI_TYPE_INTEGER) {
- DPRINTF((" subelem->Type = %x, %d\n",
+ DPRINTF((" subelem->Type = %x, %"PRIu64"\n",
elem->Package.Elements[0].Type,
- (int)elem->Package.Elements[0].Integer.Value));
+ elem->Package.Elements[0].Integer.Value));
}
}
#endif
diff --git a/sys/dev/acpi/atk0110.c b/sys/dev/acpi/atk0110.c
index 08dc4bd0144..9c2aca9a836 100644
--- a/sys/dev/acpi/atk0110.c
+++ b/sys/dev/acpi/atk0110.c
@@ -1,4 +1,4 @@
-/* $NetBSD: atk0110.c,v 1.5 2010/02/14 23:06:58 pgoyette Exp $ */
+/* $NetBSD: atk0110.c,v 1.6 2010/03/02 18:44:47 jruoho Exp $ */
/* $OpenBSD: atk0110.c,v 1.1 2009/07/23 01:38:16 cnst Exp $ */
/*
@@ -18,7 +18,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: atk0110.c,v 1.5 2010/02/14 23:06:58 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: atk0110.c,v 1.6 2010/03/02 18:44:47 jruoho Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -220,7 +220,7 @@ aibs_attach_sif(device_t self, enum envsys_units st)
/* acpica5 automatically evaluates the referenced package */
if(o[0].Type != ACPI_TYPE_PACKAGE) {
aprint_error_dev(self,
- "%s: %i: not a package: %i type\n",
+ "%s: %i: not a package: %u type\n",
name, i, o[0].Type);
continue;
}
diff --git a/sys/dev/acpi/dalb_acpi.c b/sys/dev/acpi/dalb_acpi.c
index f2bd208af21..ee5c6abdb2e 100644
--- a/sys/dev/acpi/dalb_acpi.c
+++ b/sys/dev/acpi/dalb_acpi.c
@@ -1,4 +1,4 @@
-/* $NetBSD: dalb_acpi.c,v 1.7 2010/02/24 22:37:56 dyoung Exp $ */
+/* $NetBSD: dalb_acpi.c,v 1.8 2010/03/02 18:44:47 jruoho Exp $ */
/*-
* Copyright (c) 2008 Christoph Egger <cegger@netbsd.org>
@@ -27,7 +27,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dalb_acpi.c,v 1.7 2010/02/24 22:37:56 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dalb_acpi.c,v 1.8 2010/03/02 18:44:47 jruoho Exp $");
/*
* Direct Application Launch Button:
@@ -136,7 +136,7 @@ acpi_dalb_init(device_t dev)
obj = (ACPI_OBJECT *)ret.Pointer;
if (obj->Type != ACPI_TYPE_BUFFER) {
sc->sc_usageid = DALB_ID_INVALID;
- aprint_debug_dev(dev, "invalid ACPI type: %d\n", obj->Type);
+ aprint_debug_dev(dev, "invalid ACPI type: %u\n", obj->Type);
goto out;
}
diff --git a/sys/dev/acpi/fdc_acpi.c b/sys/dev/acpi/fdc_acpi.c
index ae0c87c8611..819d719a4da 100644
--- a/sys/dev/acpi/fdc_acpi.c
+++ b/sys/dev/acpi/fdc_acpi.c
@@ -1,4 +1,4 @@
-/* $NetBSD: fdc_acpi.c,v 1.36 2009/09/16 10:47:55 mlelstv Exp $ */
+/* $NetBSD: fdc_acpi.c,v 1.37 2010/03/02 18:44:47 jruoho Exp $ */
/*
* Copyright (c) 2002 Jared D. McNeill <jmcneill@invisible.ca>
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fdc_acpi.c,v 1.36 2009/09/16 10:47:55 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fdc_acpi.c,v 1.37 2010/03/02 18:44:47 jruoho Exp $");
#include "rnd.h"
@@ -249,13 +249,13 @@ fdc_acpi_enumerate(struct fdc_acpi_softc *asc)
}
fde = (ACPI_OBJECT *)abuf.Pointer;
if (fde->Type != ACPI_TYPE_BUFFER) {
- aprint_error_dev(sc->sc_dev, "expected BUFFER, got %d\n",
+ aprint_error_dev(sc->sc_dev, "expected BUFFER, got %u\n",
fde->Type);
goto out;
}
if (fde->Buffer.Length < 5 * sizeof(UINT32)) {
aprint_error_dev(sc->sc_dev,
- "expected buffer len of %lu, got %d\n",
+ "expected buffer len of %lu, got %u\n",
(unsigned long)(5 * sizeof(UINT32)), fde->Buffer.Length);
goto out;
}
@@ -316,7 +316,7 @@ fdc_acpi_getknownfds(struct fdc_acpi_softc *asc)
fdi = (ACPI_OBJECT *)abuf.Pointer;
if (fdi->Type != ACPI_TYPE_PACKAGE) {
aprint_error_dev(sc->sc_dev,
- "expected PACKAGE, got %d\n", fdi->Type);
+ "expected PACKAGE, got %u\n", fdi->Type);
goto out;
}
e = fdi->Package.Elements;
diff --git a/sys/dev/acpi/sony_acpi.c b/sys/dev/acpi/sony_acpi.c
index 4b5c5202b10..4928944f00b 100644
--- a/sys/dev/acpi/sony_acpi.c
+++ b/sys/dev/acpi/sony_acpi.c
@@ -1,4 +1,4 @@
-/* $NetBSD: sony_acpi.c,v 1.13 2010/02/24 22:37:56 dyoung Exp $ */
+/* $NetBSD: sony_acpi.c,v 1.14 2010/03/02 18:44:47 jruoho Exp $ */
/*-
* Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sony_acpi.c,v 1.13 2010/02/24 22:37:56 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sony_acpi.c,v 1.14 2010/03/02 18:44:47 jruoho Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -292,14 +292,14 @@ sony_acpi_attach(device_t parent, device_t self, void *aux)
ACPI_DEVICE_NOTIFY, sony_acpi_notify_handler, self);
if (ACPI_FAILURE(rv))
aprint_error_dev(self,
- "couldn't install notify handler (%d)\n", rv);
+ "couldn't install notify handler (%u)\n", rv);
/* Install sysctl handler */
rv = AcpiWalkNamespace(ACPI_TYPE_METHOD,
sc->sc_node->ad_handle, 1, sony_walk_cb, sc, NULL);
#ifdef DIAGNOSTIC
if (ACPI_FAILURE(rv))
- aprint_error_dev(self, "Cannot walk ACPI namespace (%d)\n",
+ aprint_error_dev(self, "Cannot walk ACPI namespace (%u)\n",
rv);
#endif