mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-27 06:18:42 +08:00
2011-11-18 Jennifer Averett <Jennifer.Averett@OARcorp.com>
* console.c: Added a some error checks and fixed a error message.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2011-11-18 Jennifer Averett <Jennifer.Averett@OARcorp.com>
|
||||
|
||||
* console.c: Added a some error checks and fixed a error message.
|
||||
|
||||
2011-11-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
||||
|
||||
PR 1924/cpukit
|
||||
|
||||
@@ -292,15 +292,18 @@ rtems_device_driver console_initialize(
|
||||
if ( (!port->deviceProbe || port->deviceProbe(minor)) &&
|
||||
port->pDeviceFns->deviceProbe(minor)) {
|
||||
|
||||
status = rtems_io_register_name( port->sDeviceName, major, minor );
|
||||
if (status != RTEMS_SUCCESSFUL) {
|
||||
printk( "Unable to register /dev/console\n" );
|
||||
rtems_fatal_error_occurred(status);
|
||||
if (port->sDeviceName != NULL) {
|
||||
status = rtems_io_register_name( port->sDeviceName, major, minor );
|
||||
if (status != RTEMS_SUCCESSFUL) {
|
||||
printk( "Unable to register %s\n", port->sDeviceName );
|
||||
rtems_fatal_error_occurred(status);
|
||||
}
|
||||
}
|
||||
|
||||
if (minor == Console_Port_Minor) {
|
||||
#if defined(RTEMS_DEBUG)
|
||||
printk( "Register %s as the CONSOLE\n", port->sDeviceName );
|
||||
if (port->sDeviceName != NULL)
|
||||
printk( "Register %s as the CONSOLE\n", port->sDeviceName );
|
||||
#endif
|
||||
status = rtems_io_register_name( "dev/console", major, minor );
|
||||
if (status != RTEMS_SUCCESSFUL) {
|
||||
|
||||
Reference in New Issue
Block a user