diff options
author | peter <peter@FreeBSD.org> | 2002-05-19 06:16:47 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2002-05-19 06:16:47 +0000 |
commit | 51f5a10d664b0c1071343604072be6bdf74f0c4b (patch) | |
tree | 6aaebdc5575387d09472ad06a2f793adb7364261 /sys/dev/acpica/acpi_ec.c | |
parent | 6aa1f5995a41d59decabc943b093d0a1e5771d00 (diff) | |
download | FreeBSD-src-51f5a10d664b0c1071343604072be6bdf74f0c4b.zip FreeBSD-src-51f5a10d664b0c1071343604072be6bdf74f0c4b.tar.gz |
Brutally deal with __func__ being 'const char *' on gcc-3.1.
Diffstat (limited to 'sys/dev/acpica/acpi_ec.c')
-rw-r--r-- | sys/dev/acpica/acpi_ec.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/acpica/acpi_ec.c b/sys/dev/acpica/acpi_ec.c index a48600c..96da6d3 100644 --- a/sys/dev/acpica/acpi_ec.c +++ b/sys/dev/acpica/acpi_ec.c @@ -322,7 +322,7 @@ DRIVER_MODULE(acpi_ec, acpi, acpi_ec_driver, acpi_ec_devclass, 0, 0); static void acpi_ec_identify(driver_t driver, device_t bus) { - ACPI_FUNCTION_TRACE(__func__); + ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__); /* XXX implement - need an ACPI 2.0 system to test this */ @@ -358,7 +358,7 @@ acpi_ec_attach(device_t dev) ACPI_STATUS Status; int errval = 0; - ACPI_FUNCTION_TRACE(__func__); + ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__); /* * Fetch/initialise softc @@ -457,7 +457,7 @@ EcGpeQueryHandler(void *Context) ACPI_STATUS Status; char qxx[5]; - ACPI_FUNCTION_TRACE(__func__); + ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__); for (;;) { @@ -548,7 +548,7 @@ static ACPI_STATUS EcSpaceSetup(ACPI_HANDLE Region, UINT32 Function, void *Context, void **RegionContext) { - ACPI_FUNCTION_TRACE(__func__); + ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__); /* * Just pass the context through, there's nothing to do here. @@ -567,7 +567,7 @@ EcSpaceHandler(UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 width, ACP EC_REQUEST EcRequest; int i; - ACPI_FUNCTION_TRACE_U32(__func__, (UINT32)Address); + ACPI_FUNCTION_TRACE_U32((char *)(uintptr_t)__func__, (UINT32)Address); if ((Address > 0xFF) || (width % 8 != 0) || (Value == NULL) || (Context == NULL)) return_ACPI_STATUS(AE_BAD_PARAMETER); @@ -615,7 +615,7 @@ EcWaitEventIntr(struct acpi_ec_softc *sc, EC_EVENT Event) EC_STATUS EcStatus; int i; - ACPI_FUNCTION_TRACE_U32(__func__, (UINT32)Event); + ACPI_FUNCTION_TRACE_U32((char *)(uintptr_t)__func__, (UINT32)Event); /* XXX this should test whether interrupts are available some other way */ if(cold) |