summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2016-10-04 18:04:08 +0200
committerMike Snitzer <snitzer@redhat.com>2016-11-21 15:52:03 +0100
commit23cab26dfca10d453866e89f0dcbf2168de5b3fe (patch)
treeb72122f86000344d1f6d1e0111d01078a474783e /drivers/md
parentdm cache metadata: remove an extra newline in DMERR and code (diff)
downloadlinux-23cab26dfca10d453866e89f0dcbf2168de5b3fe.tar.xz
linux-23cab26dfca10d453866e89f0dcbf2168de5b3fe.zip
dm cache: add missing cache device name to DMERR in set_cache_mode()
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm-cache-target.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/dm-cache-target.c b/drivers/md/dm-cache-target.c
index 59b2c50562e4..e04c61e0839e 100644
--- a/drivers/md/dm-cache-target.c
+++ b/drivers/md/dm-cache-target.c
@@ -989,7 +989,8 @@ static void set_cache_mode(struct cache *cache, enum cache_metadata_mode new_mod
enum cache_metadata_mode old_mode = get_cache_mode(cache);
if (dm_cache_metadata_needs_check(cache->cmd, &needs_check)) {
- DMERR("unable to read needs_check flag, setting failure mode");
+ DMERR("%s: unable to read needs_check flag, setting failure mode.",
+ cache_device_name(cache));
new_mode = CM_FAIL;
}