Changeset 1043 for trunk/softs


Ignore:
Timestamp:
May 19, 2016, 5:48:28 PM (8 years ago)
Author:
meunier
Message:
  • Reintroducing the '\r' character when a '\n' is passed in the reset_putc function, but switched order with '\n' so as to avoid binary characters printed in log files.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/softs/tsar_boot/drivers/reset_tty.c

    r1042 r1043  
    3737void reset_putc(const char c)
    3838{
    39     iowrite32( &tty_address[TTY_WRITE], (unsigned int)c );
     39    if (c == '\n')
     40    {
     41        iowrite32(&tty_address[TTY_WRITE], (unsigned int) '\r');
     42    }
     43    iowrite32(&tty_address[TTY_WRITE], (unsigned int) c);
    4044}
    4145
Note: See TracChangeset for help on using the changeset viewer.