mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Do not concatenate __func__ with strings, because it is not a string.
Later gcc's blow up on this.
This commit is contained in:
parent
4d3523e298
commit
8b79649b5b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=92120
@ -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)); \
|
||||
|
Loading…
Reference in New Issue
Block a user