summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi_button.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2002-05-19 06:16:47 +0000
committerpeter <peter@FreeBSD.org>2002-05-19 06:16:47 +0000
commit51f5a10d664b0c1071343604072be6bdf74f0c4b (patch)
tree6aaebdc5575387d09472ad06a2f793adb7364261 /sys/dev/acpica/acpi_button.c
parent6aa1f5995a41d59decabc943b093d0a1e5771d00 (diff)
downloadFreeBSD-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_button.c')
-rw-r--r--sys/dev/acpica/acpi_button.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/acpica/acpi_button.c b/sys/dev/acpica/acpi_button.c
index 720eaa9..fb93377 100644
--- a/sys/dev/acpica/acpi_button.c
+++ b/sys/dev/acpica/acpi_button.c
@@ -103,7 +103,7 @@ acpi_button_attach(device_t dev)
struct acpi_button_softc *sc;
ACPI_STATUS status;
- ACPI_FUNCTION_TRACE(__func__);
+ ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__);
sc = device_get_softc(dev);
sc->button_dev = dev;
@@ -123,7 +123,7 @@ acpi_button_notify_pressed_for_sleep(void *arg)
struct acpi_button_softc *sc;
struct acpi_softc *acpi_sc;
- ACPI_FUNCTION_TRACE(__func__);
+ ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__);
sc = (struct acpi_button_softc *)arg;
acpi_sc = acpi_device_get_parent_softc(sc->button_dev);
@@ -154,7 +154,7 @@ acpi_button_notify_pressed_for_wakeup(void *arg)
struct acpi_button_softc *sc;
struct acpi_softc *acpi_sc;
- ACPI_FUNCTION_TRACE(__func__);
+ ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__);
sc = (struct acpi_button_softc *)arg;
acpi_sc = acpi_device_get_parent_softc(sc->button_dev);
@@ -188,7 +188,7 @@ acpi_button_notify_handler(ACPI_HANDLE h, UINT32 notify, void *context)
{
struct acpi_button_softc *sc = (struct acpi_button_softc *)context;
- ACPI_FUNCTION_TRACE_U32(__func__, notify);
+ ACPI_FUNCTION_TRACE_U32((char *)(uintptr_t)__func__, notify);
switch (notify) {
case ACPI_NOTIFY_BUTTON_PRESSED_FOR_SLEEP:
OpenPOWER on IntegriCloud