diff options
author | Jimmy Yang <jimmy.yang@oracle.com> | 2011-02-25 00:33:13 -0800 |
---|---|---|
committer | Jimmy Yang <jimmy.yang@oracle.com> | 2011-02-25 00:33:13 -0800 |
commit | 56845ed3b4cb9de0bb3f33d8d7c9b1bb68e7662b (patch) | |
tree | 1bc474ac9fb24c3588f13e6852b3127cb318b0bf /storage/innobase/sync/sync0sync.c | |
parent | 9f699b39f86a67df2d848918b7553eb1922be36c (diff) | |
download | mariadb-git-56845ed3b4cb9de0bb3f33d8d7c9b1bb68e7662b.tar.gz |
Fix Bug #11765975 __FILE__ macros expanded to full path instead of relative
in CMake builds
rb://600 approved by Sunny Bains
Diffstat (limited to 'storage/innobase/sync/sync0sync.c')
-rw-r--r-- | storage/innobase/sync/sync0sync.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/storage/innobase/sync/sync0sync.c b/storage/innobase/sync/sync0sync.c index 0f6a60ca260..b66920a0784 100644 --- a/storage/innobase/sync/sync0sync.c +++ b/storage/innobase/sync/sync0sync.c @@ -543,7 +543,8 @@ spin_loop: "Thread %lu spin wait mutex at %p" " cfile %s cline %lu rnds %lu\n", (ulong) os_thread_pf(os_thread_get_curr_id()), (void*) mutex, - mutex->cfile_name, (ulong) mutex->cline, (ulong) i); + innobase_basename(mutex->cfile_name), + (ulong) mutex->cline, (ulong) i); #endif mutex_spin_round_count += i; @@ -620,7 +621,8 @@ spin_loop: fprintf(stderr, "Thread %lu OS wait mutex at %p cfile %s cline %lu rnds %lu\n", (ulong) os_thread_pf(os_thread_get_curr_id()), (void*) mutex, - mutex->cfile_name, (ulong) mutex->cline, (ulong) i); + innobase_basename(mutex->cfile_name), + (ulong) mutex->cline, (ulong) i); #endif mutex_os_wait_count++; @@ -869,7 +871,8 @@ sync_print_warning( if (mutex->magic_n == MUTEX_MAGIC_N) { fprintf(stderr, "Mutex created at %s %lu\n", - mutex->cfile_name, (ulong) mutex->cline); + innobase_basename(mutex->cfile_name), + (ulong) mutex->cline); if (mutex_get_lock_word(mutex) != 0) { ulint line; |