Ignore:
Timestamp:
Sep 8, 2017, 8:38:46 AM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
458179f1
Parents:
62c912e
git-author:
Sebastian Huber <sebastian.huber@…> (09/08/17 08:38:46)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/12/17 07:57:53)
Message:

Simplify and unify BSP_output_char

The BSP_output_char should output a char and not mingle with high level
processing, e.g. '\n' to '\r\n' translation. Move this translation to
rtems_putc(). Remove it from all the BSP_output_char implementations.

Close #3122.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/mpc8260ads/console/console.c

    r62c912e r1bc0ad2  
    194194static void _BSP_output_char( char c )
    195195{
    196   char cr = '\r';
    197 
    198196  /*
    199197   *  Can't rely on console_initialize having been called before this function
     
    203201
    204202  PRINTK_WRITE( PRINTK_MINOR, &c, 1 );
    205   if( c == '\n' )
    206     PRINTK_WRITE( PRINTK_MINOR, &cr, 1 );
    207 
    208203}
    209204
Note: See TracChangeset for help on using the changeset viewer.