summaryrefslogtreecommitdiff
path: root/storage/innobase/sync/sync0sync.c
diff options
context:
space:
mode:
authorJimmy Yang <jimmy.yang@oracle.com>2011-02-25 00:33:13 -0800
committerJimmy Yang <jimmy.yang@oracle.com>2011-02-25 00:33:13 -0800
commit56845ed3b4cb9de0bb3f33d8d7c9b1bb68e7662b (patch)
tree1bc474ac9fb24c3588f13e6852b3127cb318b0bf /storage/innobase/sync/sync0sync.c
parent9f699b39f86a67df2d848918b7553eb1922be36c (diff)
downloadmariadb-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.c9
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;