From: Pawel Baldysiak Date: Tue, 24 Jan 2017 13:29:33 +0000 (+0100) Subject: imsm: fix missing error message during migration X-Git-Tag: mdadm-4.1-rc1~263 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fmdadm.git;a=commitdiff_plain;h=565cc99e341b3021ad26ff6da19a67d4e4abffde imsm: fix missing error message during migration If user tries to migrate from raid0 to raid5 and there is no spare drive to perform it - mdadm will exit with errorcode, but no error message is printed. Print error instead of debug message when this condition occurs, so user is informed why requested migration is not started. Signed-off-by: Pawel Baldysiak Signed-off-by: Jes Sorensen --- diff --git a/super-intel.c b/super-intel.c index 433bb6d3..d5e95179 100644 --- a/super-intel.c +++ b/super-intel.c @@ -10718,7 +10718,7 @@ static int imsm_create_metadata_update_for_migration( free(u); sysfs_free(spares); update_memory_size = 0; - dprintf("error: cannot get spare device for requested migration"); + pr_err("cannot get spare device for requested migration\n"); return 0; } sysfs_free(spares);