Ignore:
Timestamp:
2009-04-01T15:41:51Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b4c4666
Parents:
e1813cf
Message:

fix compilation on sparc64

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/drivers/sgcn.c

    re1813cf rce87a8aa  
    131131
    132132/* functions referenced from definitions of I/O operations structures */
    133 static void sgcn_putchar(outdev_t *, const char, bool);
     133static void sgcn_putchar(outdev_t *, const wchar_t, bool);
    134134
    135135/** SGCN output device operations */
     
    269269 * written straight away.
    270270 */
    271 static void sgcn_putchar(outdev_t *od, const char c, bool silent)
     271static void sgcn_putchar(outdev_t *od, const wchar_t ch, bool silent)
    272272{
    273273        if (!silent) {
    274274                spinlock_lock(&sgcn_output_lock);
    275275               
    276                 sgcn_do_putchar(c);
    277                 if (c == '\n')
    278                         sgcn_do_putchar('\r');
     276                if (ascii_check(ch)) {
     277                        sgcn_do_putchar(ch);
     278                        if (ch == '\n')
     279                                sgcn_do_putchar('\r');
     280                } else
     281                        sgcn_do_putchar(invalch);
    279282               
    280283                spinlock_unlock(&sgcn_output_lock);
Note: See TracChangeset for help on using the changeset viewer.