2003-04-15 Joel Sherrill <joel@OARcorp.com>

PR 387/rtems_misc
	* ide/ata.c: Removed warning and moved to use of simpler libc routines.
	* ide/ata_internal.h: Added missing newline and end of file.
This commit is contained in:
Joel Sherrill
2003-04-15 13:03:40 +00:00
parent d8767c3e64
commit eedf195795
3 changed files with 11 additions and 3 deletions

View File

@@ -1,3 +1,9 @@
2003-04-15 Joel Sherrill <joel@OARcorp.com>
PR 387/rtems_misc
* ide/ata.c: Removed warning and moved to use of simpler libc routines.
* ide/ata_internal.h: Added missing newline and end of file.
2003-03-27 Joel Sherrill <joel@OARcorp.com>
* ide/Makefile.am: ATA code depends upon libchip/ide which is not

View File

@@ -1185,8 +1185,10 @@ ata_initialize(rtems_device_major_number major,
ata_devs[ata_devs_number].ctrl_minor = ctrl_minor;
ata_devs[ata_devs_number].device = dev;
snprintf(name, ATA_MAX_NAME_LENGTH, "/dev/hd%c",
'a' + 2 * ctrl_minor + dev);
/* The space leaves a hole for the character. */
strcpy(name, "/dev/hd ");
name[7] = 'a' + 2 * ctrl_minor + dev;
device = rtems_filesystem_make_dev_t(
major,
(ata_devs_number *
@@ -1314,3 +1316,4 @@ ata_process_request_on_init_phase(rtems_device_minor_number ctrl_minor,
break;
}
}

View File

@@ -325,4 +325,3 @@ typedef struct ata_ide_ctrl_s {
#endif /* __ATA_INTERNAL_H__ */