All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] Partly revert 8172fe97 in 2008 (A few debug debug log fixes)
@ 2017-01-10 17:39 kusumi.tomohiro
  2017-01-10 17:39 ` [PATCH 2/4] Add missing trailing \n in dprint() kusumi.tomohiro
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: kusumi.tomohiro @ 2017-01-10 17:39 UTC (permalink / raw)
  To: axboe, fio; +Cc: Tomohiro Kusumi

From: Tomohiro Kusumi <tkusumi@tuxera.com>

Not sure what the point of 8172fe97 was, but shouldn't all the
prints within a single line be dprint() (or all be log_info()) ?

Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
---
 ioengine.h | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/ioengine.h b/ioengine.h
index 08e8fab..89873e7 100644
--- a/ioengine.h
+++ b/ioengine.h
@@ -238,12 +238,9 @@ static inline void dprint_io_u(struct io_u *io_u, const char *p)
 	dprint(FD_IO, "%s: io_u %p: off=%llu/len=%lu/ddir=%d", p, io_u,
 					(unsigned long long) io_u->offset,
 					io_u->buflen, io_u->ddir);
-	if (fio_debug & (1 << FD_IO)) {
-		if (f)
-			log_info("/%s", f->file_name);
-
-		log_info("\n");
-	}
+	if (f)
+		dprint(FD_IO, "/%s", f->file_name);
+	dprint(FD_IO, "\n");
 }
 #else
 #define dprint_io_u(io_u, p)
-- 
2.5.5



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-01-10 20:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-10 17:39 [PATCH 1/4] Partly revert 8172fe97 in 2008 (A few debug debug log fixes) kusumi.tomohiro
2017-01-10 17:39 ` [PATCH 2/4] Add missing trailing \n in dprint() kusumi.tomohiro
2017-01-10 17:39 ` [PATCH 3/4] Fix README regarding fio snapshots kusumi.tomohiro
2017-01-10 17:39 ` [PATCH 4/4] Python style/portability fix kusumi.tomohiro
2017-01-10 20:21 ` [PATCH 1/4] Partly revert 8172fe97 in 2008 (A few debug debug log fixes) Jens Axboe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.