From: Salyzyn, Mark Date: Mon, 23 Jul 2007 14:13:48 +0000 (-0400) Subject: [SCSI] aacraid: sysfs adapter reset/status format change. X-Git-Tag: v2.6.23-rc2~164^2~23 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=bbf17d6483a7feb4c1eeef9fd553976d4f394e4c;p=linux-2.6-omap-h63xx.git [SCSI] aacraid: sysfs adapter reset/status format change. We need to newline terminate responses from nodes within the sysfs tree, the Adapter status value reported by the reset adapter node is adjusted. Signed-off-by: Mark Salyzyn Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c index c709dc8ad99..d27c838002a 100644 --- a/drivers/scsi/aacraid/linit.c +++ b/drivers/scsi/aacraid/linit.c @@ -826,7 +826,7 @@ static ssize_t aac_show_reset_adapter(struct class_device *class_dev, tmp = aac_adapter_check_health(dev); if ((tmp == 0) && dev->in_reset) tmp = -EBUSY; - len = snprintf(buf, PAGE_SIZE, "0x%x", tmp); + len = snprintf(buf, PAGE_SIZE, "0x%x\n", tmp); return len; }