1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-13 01:01:44 +03:00

Fixed compiler warnings

This commit is contained in:
Mikael Ronstrom 2008-10-17 13:43:34 +02:00
parent 27046be12f
commit 94e46a0171
3 changed files with 11 additions and 7 deletions

View File

@ -4403,9 +4403,9 @@ loop:
putc('\n', file);
fprintf(file,
"Summary of background IO slot status: %lu issued, "
"%lu done, %lu claimed, sleep set %u\n",
"%lu done, %lu claimed, sleep set %d\n",
num_issued, num_done, num_claimed,
os_aio_recommend_sleep_for_read_threads);
(int)os_aio_recommend_sleep_for_read_threads);
putc('\n', file);
current_time = time(NULL);

View File

@ -706,7 +706,9 @@ srv_print_extra(
(double) srv_thread_wait_mics / 1000000.0);
fprintf(file,
"spinlock delay for %d delay %d rounds is %lld mics\n",
srv_spin_wait_delay, SYNC_SPIN_ROUNDS, srv_timed_spin_delay);
(int)srv_spin_wait_delay,
(int)SYNC_SPIN_ROUNDS,
srv_timed_spin_delay);
}
/*************************************************************************

View File

@ -1251,8 +1251,10 @@ innobase_start_or_create_for_mysql(void)
/* Restrict the maximum number of file i/o threads */
if ((srv_n_read_io_threads + srv_n_write_io_threads) > SRV_MAX_N_IO_THREADS) {
fprintf(stderr,
"InnoDB: requested too many read(%u) or write(%u) IO threads, max is %d\n",
srv_n_read_io_threads, srv_n_write_io_threads, SRV_MAX_N_IO_THREADS);
"InnoDB: requested too many read(%d) or write(%d) IO threads, max is %d\n",
(int)srv_n_read_io_threads,
(int)srv_n_write_io_threads,
SRV_MAX_N_IO_THREADS);
return(DB_ERROR);
}
@ -1272,8 +1274,8 @@ innobase_start_or_create_for_mysql(void)
if (n_threads > SRV_MAX_N_IO_THREADS) {
fprintf(stderr,
"InnoDB: requested too many IO threads(%u), max is %d\n",
n_threads, SRV_MAX_N_IO_THREADS);
"InnoDB: requested too many IO threads(%d), max is %d\n",
(int)n_threads, SRV_MAX_N_IO_THREADS);
return(DB_ERROR);
}