summaryrefslogtreecommitdiff
path: root/payloads/libpayload/include/assert.h
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2023-01-22 08:55:59 +0100
committerFelix Singer <felixsinger@posteo.net>2023-02-17 16:19:44 +0000
commit5331462e9efa44a8ea433e41b941b3ea663424e2 (patch)
tree296bceaedcc679ee56a89bfbb24f06097641ee2c /payloads/libpayload/include/assert.h
parentb06ba874fbda1cd6a68f328d6813f0e423c75b66 (diff)
libpayload: Use __func__ instead of old __FUNCTION__
Change-Id: Ic3c22ac101a2ff44f97b2ac3fe3c0a89391718de Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/72380 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Singer <felixsinger@posteo.net>
Diffstat (limited to 'payloads/libpayload/include/assert.h')
-rw-r--r--payloads/libpayload/include/assert.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/payloads/libpayload/include/assert.h b/payloads/libpayload/include/assert.h
index 2152af4f7a..6b4770b343 100644
--- a/payloads/libpayload/include/assert.h
+++ b/payloads/libpayload/include/assert.h
@@ -50,7 +50,7 @@ void mock_assert(const int result, const char *const expression, const char *con
if ((statement) == 0) { \
fprintf(stderr, "assertion failed in file %s, " \
"function %s(), line %d\n", \
- __FILE__, __FUNCTION__, __LINE__); \
+ __FILE__, __func__, __LINE__); \
abort(); \
}
#endif