Changes in kernel/generic/src/console/console.c [d99c1d2:da52547] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/console.c
rd99c1d2 rda52547 62 62 /** Kernel log initialized */ 63 63 static bool klog_inited = false; 64 64 65 /** First kernel log characters */ 65 66 static size_t klog_start = 0; 67 66 68 /** Number of valid kernel log characters */ 67 69 static size_t klog_len = 0; 70 68 71 /** Number of stored (not printed) kernel log characters */ 69 72 static size_t klog_stored = 0; 73 70 74 /** Number of stored kernel log characters for uspace */ 71 75 static size_t klog_uspace = 0; … … 84 88 }; 85 89 86 static void stdout_write(outdev_t * dev, wchar_t ch, bool silent);87 static void stdout_redraw(outdev_t * dev);90 static void stdout_write(outdev_t *, wchar_t, bool); 91 static void stdout_redraw(outdev_t *); 88 92 89 93 static outdev_operations_t stdout_ops = { … … 174 178 stdout->op->redraw(stdout); 175 179 176 /* Force the console to print the prompt */ 177 if ((stdin) && (prev)) 180 if ((stdin) && (prev)) { 181 /* 182 * Force the console to print the prompt. 183 */ 178 184 indev_push_character(stdin, '\n'); 185 } 179 186 } 180 187 … … 287 294 stdout->op->write(stdout, ch, silent); 288 295 else { 289 /* The character is just in the kernel log */ 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 290 309 if (klog_stored < klog_len) 291 310 klog_stored++;
Note:
See TracChangeset
for help on using the changeset viewer.