Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/console/console.c

    rda52547 rd99c1d2  
    6262/** Kernel log initialized */
    6363static bool klog_inited = false;
    64 
    6564/** First kernel log characters */
    6665static size_t klog_start = 0;
    67 
    6866/** Number of valid kernel log characters */
    6967static size_t klog_len = 0;
    70 
    7168/** Number of stored (not printed) kernel log characters */
    7269static size_t klog_stored = 0;
    73 
    7470/** Number of stored kernel log characters for uspace */
    7571static size_t klog_uspace = 0;
     
    8884};
    8985
    90 static void stdout_write(outdev_t *, wchar_t, bool);
    91 static void stdout_redraw(outdev_t *);
     86static void stdout_write(outdev_t *dev, wchar_t ch, bool silent);
     87static void stdout_redraw(outdev_t *dev);
    9288
    9389static outdev_operations_t stdout_ops = {
     
    178174                stdout->op->redraw(stdout);
    179175       
    180         if ((stdin) && (prev)) {
    181                 /*
    182                  * Force the console to print the prompt.
    183                  */
     176        /* Force the console to print the prompt */
     177        if ((stdin) && (prev))
    184178                indev_push_character(stdin, '\n');
    185         }
    186179}
    187180
     
    294287                stdout->op->write(stdout, ch, silent);
    295288        else {
    296                 /*
    297                  * No standard output routine defined yet.
    298                  * The character is still stored in the kernel log
    299                  * for possible future output.
    300                  *
    301                  * The early_putchar() function is used to output
    302                  * the character for low-level debugging purposes.
    303                  * Note that the early_putc() function might be
    304                  * a no-op on certain hardware configurations.
    305                  *
    306                  */
    307                 early_putchar(ch);
    308                
     289                /* The character is just in the kernel log */
    309290                if (klog_stored < klog_len)
    310291                        klog_stored++;
Note: See TracChangeset for help on using the changeset viewer.