mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
Use __func__ instead of __FUNCTION__
They are equivalent, but __func__ is in C99. __FUNCTION__ exists only for backwards compatibility with old gcc versions. Signed-off-by: Michael Forney <mforney@mforney.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
5905af1996
commit
0baf7b377c
4 changed files with 10 additions and 10 deletions
|
|
@ -54,11 +54,11 @@ char *snd_pcm_share_slaves_mutex_holder;
|
|||
do { \
|
||||
int err = pthread_mutex_trylock(mutex); \
|
||||
if (err < 0) { \
|
||||
fprintf(stderr, "lock " #mutex " is busy (%s): waiting in " __FUNCTION__ "\n", *(mutex##_holder)); \
|
||||
fprintf(stderr, "lock " #mutex " is busy (%s): waiting in " __func__ "\n", *(mutex##_holder)); \
|
||||
pthread_mutex_lock(mutex); \
|
||||
fprintf(stderr, "... got\n"); \
|
||||
} \
|
||||
*(mutex##_holder) = __FUNCTION__; \
|
||||
*(mutex##_holder) = __func__; \
|
||||
} while (0)
|
||||
|
||||
#define Pthread_mutex_unlock(mutex) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue