Changeset 116370c6 in rtems


Ignore:
Timestamp:
Jul 5, 2016, 3:10:31 PM (5 years ago)
Author:
Joel Sherrill <joel@…>
Branches:
5, master
Children:
5df74991
Parents:
c305847
git-author:
Joel Sherrill <joel@…> (07/05/16 15:10:31)
git-committer:
Joel Sherrill <joel@…> (07/05/16 15:42:29)
Message:

shared/console-polled.c: Use standard fatal error codes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/shared/console-polled.c

    rc305847 r116370c6  
    7575  status = rtems_io_register_name( "/dev/console", major, 0 );
    7676  if (status != RTEMS_SUCCESSFUL)
    77     rtems_fatal_error_occurred(status);
     77    rtems_fatal_error_occurred(BSP_FATAL_CONSOLE_REGISTER_DEV_0);
    7878
    7979  return RTEMS_SUCCESSFUL;
     
    9797  };
    9898
    99   assert( minor <= 1 );
    100   if ( minor > 1 )
     99  assert( minor == 0 );
     100  if ( minor != 0 )
    101101    return RTEMS_INVALID_NUMBER;
    102102
Note: See TracChangeset for help on using the changeset viewer.