All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dm dust: add __func__ to queryblocks and clearbadblocks DMEMIT calls
@ 2020-06-19 17:43 Bryan Gurney
  0 siblings, 0 replies; only message in thread
From: Bryan Gurney @ 2020-06-19 17:43 UTC (permalink / raw)
  To: dm-devel, snitzer, agk; +Cc: Bryan Gurney

Signed-off-by: Bryan Gurney <bgurney@redhat.com>
---
 drivers/md/dm-dust.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/md/dm-dust.c b/drivers/md/dm-dust.c
index 2ad8fc9293e0..e08f955dfe7b 100644
--- a/drivers/md/dm-dust.c
+++ b/drivers/md/dm-dust.c
@@ -148,9 +148,9 @@ static int dust_query_block(struct dust_device *dd, unsigned long long block, ch
 	spin_lock_irqsave(&dd->dust_lock, flags);
 	bblock = dust_rb_search(&dd->badblocklist, block);
 	if (bblock != NULL)
-		DMEMIT("block %llu found in badblocklist", block);
+		DMEMIT("%s: block %llu found in badblocklist", __func__, block);
 	else
-		DMEMIT("block %llu not found in badblocklist", block);
+		DMEMIT("%s: block %llu not found in badblocklist", __func__, block);
 	spin_unlock_irqrestore(&dd->dust_lock, flags);
 
 	return 1;
@@ -277,9 +277,9 @@ static int dust_clear_badblocks(struct dust_device *dd, char *result, unsigned i
 	spin_unlock_irqrestore(&dd->dust_lock, flags);
 
 	if (!__dust_clear_badblocks(&badblocklist, badblock_count))
-		DMEMIT("no badblocks found");
+		DMEMIT("%s: no badblocks found", __func__);
 	else
-		DMEMIT("badblocks cleared");
+		DMEMIT("%s: badblocks cleared", __func__);
 
 	return 1;
 }
-- 
2.25.4

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-06-19 17:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-19 17:43 [PATCH] dm dust: add __func__ to queryblocks and clearbadblocks DMEMIT calls Bryan Gurney

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.