diff options
author | Michael Widenius <monty@mariadb.org> | 2017-10-18 17:04:15 +0300 |
---|---|---|
committer | Michael Widenius <monty@mariadb.org> | 2017-10-18 17:10:49 +0300 |
commit | 98cc7a8eeff32eddb37a81635138c76551600e34 (patch) | |
tree | 2c3e3abc6c24331325b04526427238741cb925e7 /sql/sql_test.cc | |
parent | 3294f6c30d9f242a6ac3635272dceffdd8713301 (diff) | |
download | mariadb-git-98cc7a8eeff32eddb37a81635138c76551600e34.tar.gz |
Fixed compiler warnings
Diffstat (limited to 'sql/sql_test.cc')
-rw-r--r-- | sql/sql_test.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sql/sql_test.cc b/sql/sql_test.cc index d16edf5b5d5..b7b70f0f55c 100644 --- a/sql/sql_test.cc +++ b/sql/sql_test.cc @@ -85,8 +85,9 @@ static my_bool print_cached_tables_callback(TDC_element *element, while ((entry= it++)) { THD *in_use= entry->in_use; - printf("%-14.14s %-32s%6ld%8ld%6d %s\n", - entry->s->db.str, entry->s->table_name.str, element->version, + printf("%-14.14s %-32s%6lu%8ld%6d %s\n", + entry->s->db.str, entry->s->table_name.str, + (ulong) element->version, in_use ? (long) in_use->thread_id : (long) 0, entry->db_stat ? 1 : 0, in_use ? lock_descriptions[(int)entry->reginfo.lock_type] : @@ -106,7 +107,8 @@ static void print_cached_tables(void) tdc_iterate(0, (my_hash_walk_action) print_cached_tables_callback, NULL, true); - printf("\nCurrent refresh version: %ld\n", tdc_refresh_version()); + printf("\nCurrent refresh version: %ld\n", + (long) tdc_refresh_version()); fflush(stdout); /* purecov: end */ return; |