[rtems commit] bsp/leon3: Add and use fatal codes

Chris Johns chrisj at rtems.org
Mon Feb 24 21:49:00 UTC 2014


On 23/02/2014 8:32 pm, Sebastian Huber wrote:
> On 02/22/2014 10:49 PM, Chris Johns wrote:
>>> -    status = rtems_io_register_name( console_name, major, i+1);
>>> +    rtems_io_register_name( console_name, major, i+1);
>>
>> Why is the result not checked ?
>
> Its not checked since day one of this file.

Sure but this is no reason not to add a check rather than remove the 
assignment.

>  I suppose its not critical
> if you can't register these device files (in contrast to
> "/dev/console").  If the application uses these missing device files,
> then it may do smarter things than we can do here.

Yeah this is true and a good point. Maybe adding the check and failing 
would break existing applications.

Chris



More information about the devel mailing list