Changeset 7c0273e in rtems


Ignore:
Timestamp:
Nov 18, 2011, 8:08:15 PM (9 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.11, 5, master
Children:
1c0b8d7
Parents:
84e1742
Message:

2011-11-18 Jennifer Averett <Jennifer.Averett@…>

  • console.c: Added a some error checks and fixed a error message.
Location:
c/src/lib/libbsp/shared
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/shared/ChangeLog

    r84e1742 r7c0273e  
     12011-11-18      Jennifer Averett <Jennifer.Averett@OARcorp.com>
     2
     3        * console.c: Added a some error checks and fixed a error message.
     4
    152011-11-10      Sebastian Huber <sebastian.huber@embedded-brains.de>
    26
  • c/src/lib/libbsp/shared/console.c

    r84e1742 r7c0273e  
    293293         port->pDeviceFns->deviceProbe(minor)) {
    294294
    295       status = rtems_io_register_name( port->sDeviceName, major, minor );
    296       if (status != RTEMS_SUCCESSFUL) {
    297         printk( "Unable to register /dev/console\n" );
    298         rtems_fatal_error_occurred(status);
     295      if (port->sDeviceName != NULL) {
     296        status = rtems_io_register_name( port->sDeviceName, major, minor );
     297        if (status != RTEMS_SUCCESSFUL) {
     298          printk( "Unable to register %s\n",  port->sDeviceName );
     299          rtems_fatal_error_occurred(status);
     300        }
    299301      }
    300302
    301303      if (minor == Console_Port_Minor) {
    302304#if defined(RTEMS_DEBUG)
    303           printk( "Register %s as the CONSOLE\n", port->sDeviceName );
     305          if (port->sDeviceName != NULL)
     306            printk( "Register %s as the CONSOLE\n", port->sDeviceName );
    304307#endif
    305308        status = rtems_io_register_name( "dev/console", major, minor );
Note: See TracChangeset for help on using the changeset viewer.