linux-nvme.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH rfc 0/2] nvmet nice logging helpers
@ 2018-07-16 10:53 Sagi Grimberg
  2018-07-16 10:53 ` [PATCH rfc 1/2] nvmet: add nvmet port " Sagi Grimberg
  2018-07-16 10:53 ` [PATCH rfc 2/2] nvmet: add nvmet ctrl " Sagi Grimberg
  0 siblings, 2 replies; 5+ messages in thread
From: Sagi Grimberg @ 2018-07-16 10:53 UTC (permalink / raw)


This patch set adds some friendly logging helpers with similar
functionality to dev_[err|warn|info|dbg]. When building a
target system with multiple ports and multiple controllers
connected, its useful to have a coherent log message formats
that provide the affected port and controller identifier.

The one annoying thing is that for xxxx_dbg helper I needed
to open-code the dynamic debug macros. If anyone has a better
idea on how to have it, it'd be great (without allocating a class
device for it).

Feedback is welcome.

Sagi Grimberg (2):
  nvmet: add nvmet port logging helpers
  nvmet: add nvmet ctrl logging helpers

 drivers/nvme/target/admin-cmd.c   | 11 ++++-----
 drivers/nvme/target/configfs.c    | 37 +++++++++++-----------------
 drivers/nvme/target/core.c        | 20 +++++++--------
 drivers/nvme/target/discovery.c   | 13 +++++-----
 drivers/nvme/target/fabrics-cmd.c | 15 +++++------
 drivers/nvme/target/io-cmd-bdev.c |  5 ++--
 drivers/nvme/target/nvmet.h       | 44 +++++++++++++++++++++++++++++++++
 drivers/nvme/target/rdma.c        | 52 ++++++++++++++++++++++-----------------
 8 files changed, 122 insertions(+), 75 deletions(-)

-- 
2.14.1

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

end of thread, other threads:[~2018-07-18 12:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-16 10:53 [PATCH rfc 0/2] nvmet nice logging helpers Sagi Grimberg
2018-07-16 10:53 ` [PATCH rfc 1/2] nvmet: add nvmet port " Sagi Grimberg
2018-07-16 10:53 ` [PATCH rfc 2/2] nvmet: add nvmet ctrl " Sagi Grimberg
2018-07-16 22:11   ` Chaitanya Kulkarni
2018-07-18 12:25     ` Sagi Grimberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).