From 08e8cab57841cd1e2cc47bb9899b16a531e1a1f5 Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Thu, 18 Jun 2020 15:20:37 +0200 Subject: src: Substitute `__FUNCTION__` with `__func__` The former is not standard C, and we primarily use the latter form. Change-Id: Ia7091b494ff72588fb6910710fd72165693c1ac5 Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/42516 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Felix Singer Reviewed-by: Christian Walter --- src/commonlib/include/commonlib/stdlib.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/commonlib/include') diff --git a/src/commonlib/include/commonlib/stdlib.h b/src/commonlib/include/commonlib/stdlib.h index 307406f84b..374fe16dd9 100644 --- a/src/commonlib/include/commonlib/stdlib.h +++ b/src/commonlib/include/commonlib/stdlib.h @@ -29,7 +29,7 @@ static inline void *xmalloc_work(size_t size, const char *file, } return ret; } -#define xmalloc(size) xmalloc_work((size), __FILE__, __FUNCTION__, __LINE__) +#define xmalloc(size) xmalloc_work((size), __FILE__, __func__, __LINE__) static inline void *xzalloc_work(size_t size, const char *file, const char *func, int line) @@ -38,7 +38,7 @@ static inline void *xzalloc_work(size_t size, const char *file, memset(ret, 0, size); return ret; } -#define xzalloc(size) xzalloc_work((size), __FILE__, __FUNCTION__, __LINE__) +#define xzalloc(size) xzalloc_work((size), __FILE__, __func__, __LINE__) void *dma_malloc(size_t size); int dma_coherent(void *ptr); -- cgit v1.2.3