summaryrefslogtreecommitdiff
path: root/mysys/wqueue.c
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2017-09-19 17:45:17 +0000
committerVladislav Vaintroub <wlad@mariadb.com>2017-09-28 17:20:46 +0000
commiteba44874ca9fc317696630cb371623142289fa99 (patch)
treef67cd5dbcaf102abef2fb26f76357d14feaded04 /mysys/wqueue.c
parentde7c2e5e545df90fc9814c60a8a5a8d20f22b2c3 (diff)
downloadmariadb-git-eba44874ca9fc317696630cb371623142289fa99.tar.gz
MDEV-13844 : Fix Windows warnings. Fix DBUG_PRINT.
- Fix win64 pointer truncation warnings (usually coming from misusing 0x%lx and long cast in DBUG) - Also fix printf-format warnings Make the above mentioned warnings fatal. - fix pthread_join on Windows to set return value.
Diffstat (limited to 'mysys/wqueue.c')
-rw-r--r--mysys/wqueue.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/mysys/wqueue.c b/mysys/wqueue.c
index 1dafc03b935..8bc28111655 100644
--- a/mysys/wqueue.c
+++ b/mysys/wqueue.c
@@ -224,17 +224,17 @@ void wqueue_add_and_wait(WQUEUE *wqueue,
{
DBUG_ENTER("wqueue_add_and_wait");
DBUG_PRINT("enter",
- ("thread: 0x%lx cond: 0x%lx mutex: 0x%lx",
- (ulong) thread, (ulong) &thread->suspend, (ulong) lock));
+ ("thread: %p cond: %p mutex: %p",
+ thread, &thread->suspend, lock));
wqueue_add_to_queue(wqueue, thread);
do
{
- DBUG_PRINT("info", ("wait... cond: 0x%lx mutex: 0x%lx",
- (ulong) &thread->suspend, (ulong) lock));
+ DBUG_PRINT("info", ("wait... cond: %p mutex: %p",
+ &thread->suspend, lock));
mysql_cond_wait(&thread->suspend, lock);
- DBUG_PRINT("info", ("wait done cond: 0x%lx mutex: 0x%lx next: 0x%lx",
- (ulong) &thread->suspend, (ulong) lock,
- (ulong) thread->next));
+ DBUG_PRINT("info", ("wait done cond: %p mutex: %p next: %p",
+ &thread->suspend, lock,
+ thread->next));
}
while (thread->next);
DBUG_VOID_RETURN;