Fix the Windows build

On Windows, a mismatch between TIMETPF ("%ld") and time_t would be reported.
Use "%ld" and long, like the code used to be.
This commit is contained in:
Marko Mäkelä 2018-10-18 12:15:07 +03:00
parent 56de291978
commit 64d26ec52a

View file

@ -147,10 +147,10 @@ btr_scrub_lock_dict_func(ulint space_id, bool lock_to_close_table,
if (now >= last + 30) {
fprintf(stderr,
"WARNING: %s:%u waited " TIMETPF " seconds for"
"WARNING: %s:%u waited %ld seconds for"
" dict_sys lock, space: " ULINTPF
" lock_to_close_table: %d\n",
file, line, now - start, space_id,
file, line, long(now - start), space_id,
lock_to_close_table);
last = now;