PERFORCE change 28382 for review
Peter Wemm
peter at FreeBSD.org
Sun Apr 6 18:40:46 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=28382
Change 28382 by peter at peter_overcee on 2003/04/06 18:40:06
Somebody once said, "printf is all you need for kernel debugging".
So. Step 1: get printf working.
Affected files ...
.. //depot/projects/hammer/sys/kern/tty_cons.c#4 edit
Differences ...
==== //depot/projects/hammer/sys/kern/tty_cons.c#4 (text+ko) ====
@@ -116,8 +116,10 @@
static int openflag; /* how /dev/console was opened */
static int cn_is_open;
static u_char console_pausing; /* pause after each line during probe */
+#if 0
static char *console_pausestr=
"<pause; press any key to proceed to next line or '.' to end pause mode>";
+#endif
void cndebug(char *);
@@ -537,9 +539,15 @@
return (-1);
}
+extern void serial_putc(int);
void
cnputc(int c)
{
+#if 1
+ if (c == '\n')
+ serial_putc('\r');
+ serial_putc(c);
+#else
struct cn_device *cnd;
struct consdev *cn;
char *cp;
@@ -566,6 +574,7 @@
cnputc(' ');
cnputc('\r');
}
+#endif
}
void
More information about the p4-projects
mailing list