dm cache metadata: remove an extra newline in DMERR and code
authorMike Snitzer <snitzer@redhat.com>
Mon, 3 Oct 2016 15:56:22 +0000 (11:56 -0400)
committerMike Snitzer <snitzer@redhat.com>
Mon, 21 Nov 2016 14:52:02 +0000 (09:52 -0500)
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-cache-metadata.c

index 695577812cf686ba25e3e1e140d4e8370deafaf4..624fe4319b24ad0f338e912a07a5040ad91ad4c9 100644 (file)
@@ -383,7 +383,6 @@ static int __format_metadata(struct dm_cache_metadata *cmd)
                goto bad;
 
        dm_disk_bitset_init(cmd->tm, &cmd->discard_info);
-
        r = dm_bitset_empty(&cmd->discard_info, &cmd->discard_root);
        if (r < 0)
                goto bad;
@@ -789,7 +788,7 @@ static struct dm_cache_metadata *lookup_or_open(struct block_device *bdev,
 static bool same_params(struct dm_cache_metadata *cmd, sector_t data_block_size)
 {
        if (cmd->data_block_size != data_block_size) {
-               DMERR("data_block_size (%llu) different from that in metadata (%llu)\n",
+               DMERR("data_block_size (%llu) different from that in metadata (%llu)",
                      (unsigned long long) data_block_size,
                      (unsigned long long) cmd->data_block_size);
                return false;