dm cache: add missing cache device name to DMERR in set_cache_mode()
authorMike Snitzer <snitzer@redhat.com>
Tue, 4 Oct 2016 16:04:08 +0000 (12:04 -0400)
committerMike Snitzer <snitzer@redhat.com>
Mon, 21 Nov 2016 14:52:03 +0000 (09:52 -0500)
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-cache-target.c

index 59b2c50562e4bc8e2a1ecc3ddf7f1ffaa0bce650..e04c61e0839e64192f7f6efdcef969dd449ca2d0 100644 (file)
@@ -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;
        }