[PATCH] aacraid: sysfs adapter reset/status format change.

Salyzyn, Mark
2007-07-23T14:13:50Z

[-- Attachment #1: Type: text/plain, Size: 483 bytes --]

We need to newline terminate responses from nodes within the sysfs tree,
the Adapter status value reported by the reset adapter node is adjusted.

This attached patch is against current scsi-misc-2.6

ObligatoryDisclaimer: Please accept my condolences regarding Outlook's
handling of patch attachments.

Signed-off-by: Mark Salyzyn <aacraid@adaptec.com>

drivers/scsi/aacraid/linit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Sincerely -- Mark Salyzyn

[-- Attachment #2: aacraid_adapter_status_format_change.patch --]
[-- Type: application/octet-stream, Size: 439 bytes --]

diff -ru a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c
--- a/drivers/scsi/aacraid/linit.c 2007-07-23 09:53:06.852929239 -0400
+++ b/drivers/scsi/aacraid/linit.c 2007-07-23 10:08:10.347390939 -0400
@@ -822,7 +822,7 @@
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;
}