ref: feb88f048d3ebfa1ff5e2b8e61dc3ad0baacffbc
parent: 10cf5557ab4ab54278b6079da5539eb1cc59a597
author: joe9 <[email protected]>
date: Wed Jul 14 07:40:19 EDT 2021
cleaned up debug cga and devcons prints
--- a/os/pc/cga.c
+++ b/os/pc/cga.c
@@ -97,9 +97,6 @@
static void
cgascreenputs(char* s, int n)
{
- int i,j;
- /*char pre[512] = "";*/
-
if(!islo()){
/*
* Don't deadlock trying to
@@ -111,20 +108,13 @@
else
lock(&cgascreenlock);
- /*j = snprint(pre,512,"-%d %d-",n, cgapos);
- for(i=0;i<j&&i<512;i++){
- outb(0x3D6, pre[i]);
- }*/
while(n-- > 0){
outb(0x3D6, *s);
- // outb(0x3D6, '-');
cgascreenputc(*s++);
- // outb(0x3D6, '_');
}
movecursor();
unlock(&cgascreenlock);
- // outb(0x3D6, ',');
}
void
--- a/os/port/devcons.c
+++ b/os/port/devcons.c
@@ -149,8 +149,6 @@
int m;
char *t;
char buf[PRINTSIZE+2];
- /* int i;
- char pre[PRINTSIZE+2]; */
/*
* how many different output devices do we need?
@@ -179,9 +177,6 @@
runlock(&kprintq);
}
if(m && screenputs != nil){
- /*for debugging for(i = 0; i<n; i++)
- pre[i] = '.';
- screenputs(pre, i);*/
screenputs(str, n);
}