summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2018-02-14 03:27:54 +0200
committerMonty <monty@mariadb.org>2018-03-29 13:59:40 +0300
commit0631f20ff75269f2ce427200d8116bb2b6c75605 (patch)
treee1af576590590dc630bb4e08b0dfcb0782fd981a
parentc3f37c070ce1224173fa5ed9033d50aa6f0bc535 (diff)
downloadmariadb-git-0631f20ff75269f2ce427200d8116bb2b6c75605.tar.gz
Fixed some DBUG_PRINT to use %p properly
-rw-r--r--sql/sp_head.h2
-rw-r--r--sql/temporary_tables.cc3
2 files changed, 3 insertions, 2 deletions
diff --git a/sql/sp_head.h b/sql/sp_head.h
index 4cef33a76a7..f588f79b599 100644
--- a/sql/sp_head.h
+++ b/sql/sp_head.h
@@ -831,7 +831,7 @@ public:
*/
DBUG_PRINT("info", ("lex->get_stmt_unsafe_flags(): 0x%x",
prelocking_ctx->get_stmt_unsafe_flags()));
- DBUG_PRINT("info", ("sp_head(0x%p=%s)->unsafe_flags: 0x%x",
+ DBUG_PRINT("info", ("sp_head(%p=%s)->unsafe_flags: 0x%x",
this, name()->str, unsafe_flags));
prelocking_ctx->set_stmt_unsafe_flags(unsafe_flags);
DBUG_VOID_RETURN;
diff --git a/sql/temporary_tables.cc b/sql/temporary_tables.cc
index 4c6671cc2ae..908d28f6629 100644
--- a/sql/temporary_tables.cc
+++ b/sql/temporary_tables.cc
@@ -1140,7 +1140,8 @@ TABLE *THD::open_temporary_table(TMP_TABLE_SHARE *share,
thread_safe_increment32(&slave_open_temp_tables);
}
- DBUG_PRINT("tmptable", ("Opened table: '%s'.'%s'%p", table->s->db.str,
+ DBUG_PRINT("tmptable", ("Opened table: '%s'.'%s table: %p",
+ table->s->db.str,
table->s->table_name.str, table));
DBUG_RETURN(table);
}