aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-init.c
diff options
context:
space:
mode:
authorStephen Boyd <swboyd@chromium.org>2019-06-04 18:27:29 -0700
committerMike Snitzer <snitzer@redhat.com>2019-06-25 13:43:09 -0400
commit10c9c8e7c09b4d32b31df1bd14673bd6dbfc50be (patch)
tree8c2aa1b5e6560edd412bb72555708e7f7a8d7f05 /drivers/md/dm-init.c
parentdm init: fix incorrect uses of kstrndup() (diff)
downloadlinux-dev-10c9c8e7c09b4d32b31df1bd14673bd6dbfc50be.tar.xz
linux-dev-10c9c8e7c09b4d32b31df1bd14673bd6dbfc50be.zip
dm init: remove trailing newline from calls to DMERR() and DMINFO()
These printing macros already add a trailing newline, so having another one here just makes for blank lines when these prints are enabled. Remove these needless newlines. Fixes: 6bbc923dfcf5 ("dm: add support to directly boot to a mapped device") Signed-off-by: Stephen Boyd <swboyd@chromium.org> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to '')
-rw-r--r--drivers/md/dm-init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/dm-init.c b/drivers/md/dm-init.c
index 64611633e77c..728733a514c7 100644
--- a/drivers/md/dm-init.c
+++ b/drivers/md/dm-init.c
@@ -272,7 +272,7 @@ static int __init dm_init_init(void)
return 0;
if (strlen(create) >= DM_MAX_STR_SIZE) {
- DMERR("Argument is too big. Limit is %d\n", DM_MAX_STR_SIZE);
+ DMERR("Argument is too big. Limit is %d", DM_MAX_STR_SIZE);
return -EINVAL;
}
str = kstrndup(create, DM_MAX_STR_SIZE, GFP_KERNEL);
@@ -283,7 +283,7 @@ static int __init dm_init_init(void)
if (r)
goto out;
- DMINFO("waiting for all devices to be available before creating mapped devices\n");
+ DMINFO("waiting for all devices to be available before creating mapped devices");
wait_for_device_probe();
list_for_each_entry(dev, &devices, list) {