diff options
author | Hugo Beauzée-Luyssen <hugo@videolan.org> | 2018-09-20 14:57:37 +0300 |
---|---|---|
committer | Hugo Beauzée-Luyssen <hugo@videolan.org> | 2018-09-25 12:34:42 +0300 |
commit | ac6c286860faadf501ef44bb0c0f76a27d299b53 (patch) | |
tree | 6aadfdc69808b0abafe92b6aa6464dfc5bf8fc08 /include | |
parent | 3ad41348d203759dac2ad531de8ff1e55b6454c9 (diff) |
validate: Don't use __PRETTY_FUNCTION__
It is not valid in ISO C and doesn't differ from __func__
Diffstat (limited to 'include')
-rw-r--r-- | include/common/validate.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/common/validate.h b/include/common/validate.h index 32370eb..9114740 100644 --- a/include/common/validate.h +++ b/include/common/validate.h @@ -40,7 +40,7 @@ #define validate_input_or_ret_with_msg(x, r, ...) \ if (!(x)) { \ fprintf(stderr, "Input validation check \'%s\' failed in %s!\n", \ - #x, __PRETTY_FUNCTION__); \ + #x, __func__); \ fprintf(stderr, __VA_ARGS__); \ debug_abort(); \ return r; \ @@ -49,7 +49,7 @@ #define validate_input_or_ret(x, r) \ if (!(x)) { \ fprintf(stderr, "Input validation check \'%s\' failed in %s!\n", \ - #x, __PRETTY_FUNCTION__); \ + #x, __func__); \ debug_abort(); \ return r; \ } |