dm dust: add __func__ to queryblocks and clearbadblocks DMEMIT calls
PATCH 1/1 dm dust: add __func__ to queryblocks and clearbadblocks DMEMIT calls
Signed-off-by Bryan Gurney <[email protected]>
--- drivers/md/dm-dust.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/md/dm-dust.c +4 -4
@@ -148,9 +148,9 @@ static int dust_query_block(struct dust_device *dd, unsigned long long block, chspin_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 ispin_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 ; }
Signature · 1 line
2.25.4