diff options
author | Vladislav Vaintroub <wlad@montyprogram.com> | 2011-02-19 02:42:08 +0100 |
---|---|---|
committer | Vladislav Vaintroub <wlad@montyprogram.com> | 2011-02-19 02:42:08 +0100 |
commit | 28cb3b85b916f0f15d01660911871c4172021979 (patch) | |
tree | fe776a6f44b50ea2d246f1120dcd930032eae985 /sql/uniques.cc | |
parent | 019256c9fc857bb89b1ca2ccc232f5ae4a67b992 (diff) | |
download | mariadb-git-28cb3b85b916f0f15d01660911871c4172021979.tar.gz |
Fixed DBUG_PRINT formatting (compile error on Linux with -Werror)
Diffstat (limited to 'sql/uniques.cc')
-rw-r--r-- | sql/uniques.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sql/uniques.cc b/sql/uniques.cc index 4e5b52cef56..cfce53b70d7 100644 --- a/sql/uniques.cc +++ b/sql/uniques.cc @@ -312,9 +312,10 @@ double Unique::get_use_cost(uint *buffer, size_t nkeys, uint key_size, result+= n_full_trees * log2_n_fact(max_elements_in_tree + 1.0); result /= compare_factor; - DBUG_PRINT("info",("unique trees sizes: %u=%u*%lu + %lu", nkeys, - n_full_trees, n_full_trees?max_elements_in_tree:0, - last_tree_elems)); + DBUG_PRINT("info",("unique trees sizes: %u=%u*%u + %u", (uint)nkeys, + (uint)n_full_trees, + (uint)(n_full_trees?max_elements_in_tree:0), + (uint)last_tree_elems)); if (in_memory) *in_memory= !n_full_trees; |