From: Krzysztof Wojcik Date: Wed, 2 Mar 2011 16:33:01 +0000 (+0100) Subject: Enable error message in case of lack of spares for grow X-Git-Tag: mdadm-3.2.1~92 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e14e59602a3b0d1abd2a88ecc1e5fb895024b3e2;p=thirdparty%2Fmdadm.git Enable error message in case of lack of spares for grow When we cannot find spare devices for grow operation we should print error message. This patch changes debug error message to 'stderr' print. Signed-off-by: Krzysztof Wojcik Signed-off-by: NeilBrown --- diff --git a/super-intel.c b/super-intel.c index 1a7be713..86e6bd4f 100644 --- a/super-intel.c +++ b/super-intel.c @@ -6885,7 +6885,8 @@ static int imsm_create_metadata_update_for_reshape( if (spares == NULL || delta_disks > spares->array.spare_disks) { - dprintf("imsm: ERROR: Cannot get spare devices.\n"); + fprintf(stderr, Name ": imsm: ERROR: Cannot get spare devices " + "for %s.\n", geo->dev_name); goto abort; }