Browse Source

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.
pull/892/head
Marko Mäkelä 7 years ago
parent
commit
64d26ec52a
  1. 4
      storage/innobase/btr/btr0scrub.cc

4
storage/innobase/btr/btr0scrub.cc

@ -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;

Loading…
Cancel
Save