On Monday, 2020-08-10 at 13:14:46 +03, Denis V. Lunev wrote: > + strftime(buf, sizeof(buf), "%m-%d %H:%M:%S",
"%F %T" would include the year, which can be useful. > + localtime_r(&start_time_host_s, &t)); > + > + bs = blk_bs(blk_stats2blk(stats)); > + qemu_log("long %s[%ld] IO request: %d.03%d since %s.%03d bs: %s(%s, > %s)\n", > + block_account_type(cookie->type), cookie->bytes, > + (int)(latency_ms / 1000), (int)(latency_ms % 1000), buf, > + (int)((cookie->start_time_ns / 1000000) % 1000), Is there a reason not to use %u rather than casting? dme. -- We wanna wait, but here we go again.