summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2002-03-12 00:15:06 +0000
committerpeter <peter@FreeBSD.org>2002-03-12 00:15:06 +0000
commitbce3d7f621764d12592b7d11784894b344b79b71 (patch)
treef39db4dbe5ad58dbb138873ae618ea5db3daa597 /sys/dev
parent4bd977bea6c6b3b78004ba216ca953ee2d941b7d (diff)
downloadFreeBSD-src-bce3d7f621764d12592b7d11784894b344b79b71.zip
FreeBSD-src-bce3d7f621764d12592b7d11784894b344b79b71.tar.gz
Do not concatenate __func__ with strings, because it is not a string.
Later gcc's blow up on this.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/acpica/acpi_cmbat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpica/acpi_cmbat.c b/sys/dev/acpica/acpi_cmbat.c
index 840bc2b..952bc78 100644
--- a/sys/dev/acpica/acpi_cmbat.c
+++ b/sys/dev/acpica/acpi_cmbat.c
@@ -62,7 +62,7 @@ ACPI_MODULE_NAME("BATTERY")
tmp = &res->Package.Elements[idx]; \
if (tmp == NULL) { \
ACPI_VPRINT(dev, acpi_device_get_parent_softc(dev), \
- __func__ ": PKG_GETINT error, idx = %d\n.", idx); \
+ "%s: PKG_GETINT error, idx = %d\n.", __func__, idx); \
goto label; \
} \
if (tmp->Type != ACPI_TYPE_INTEGER) \
@@ -76,7 +76,7 @@ ACPI_MODULE_NAME("BATTERY")
tmp = &res->Package.Elements[idx]; \
if (tmp == NULL) { \
ACPI_VPRINT(dev, acpi_device_get_parent_softc(dev), \
- __func__ ": PKG_GETSTR error, idx = %d\n.", idx); \
+ "%s: PKG_GETSTR error, idx = %d\n.", __func__, idx); \
goto label; \
} \
bzero(dest, sizeof(dest)); \
OpenPOWER on IntegriCloud