Add missing trailing \n in dprint()
[fio.git] / iolog.h
diff --git a/iolog.h b/iolog.h
index ee289448137d329a293e6a4ee3443561aabccac6..60ee3e920f48e3b1f0fa67aa51f7083e9c32d2c4 100644 (file)
--- a/iolog.h
+++ b/iolog.h
@@ -269,6 +269,14 @@ static inline bool inline_log(struct io_log *log)
                log->log_type == IO_LOG_TYPE_SLAT;
 }
 
+static inline void ipo_bytes_align(unsigned int replay_align, struct io_piece *ipo)
+{
+       if (replay_align)
+               return;
+
+       ipo->offset &= ~(replay_align - (uint64_t)1);
+}
+
 extern void finalize_logs(struct thread_data *td, bool);
 extern void setup_log(struct io_log **, struct log_params *, const char *);
 extern void flush_log(struct io_log *, bool);