mirror of
https://github.com/FDOS/kernel.git
synced 2025-07-23 13:54:30 +02:00
remove some debug printfs
This commit is contained in:
parent
a9c0702807
commit
1fd28ea850
@ -634,12 +634,9 @@ BYTE FAR * ProcessMemdiskLine(BYTE FAR *cLine)
|
|||||||
BYTE FAR *ptr;
|
BYTE FAR *ptr;
|
||||||
BYTE FAR *sLine = cLine;
|
BYTE FAR *sLine = cLine;
|
||||||
|
|
||||||
printf("\nMEMDISK:%S:\n", cLine);
|
|
||||||
|
|
||||||
/* skip everything until end of line or starting { */
|
/* skip everything until end of line or starting { */
|
||||||
for (; *cLine && (*cLine != '{'); ++cLine)
|
for (; *cLine && (*cLine != '{'); ++cLine)
|
||||||
printf("%c", *cLine);
|
;
|
||||||
printf("\n1st { offset is %u, ", (unsigned)(BYTE)(cLine - sLine));
|
|
||||||
sLine = cLine;
|
sLine = cLine;
|
||||||
|
|
||||||
for (ptr = cLine; *cLine; ptr = cLine)
|
for (ptr = cLine; *cLine; ptr = cLine)
|
||||||
@ -650,9 +647,7 @@ BYTE FAR * ProcessMemdiskLine(BYTE FAR *cLine)
|
|||||||
|
|
||||||
/* calc offset from previous { to next { or eol and replace previous { with offset */
|
/* calc offset from previous { to next { or eol and replace previous { with offset */
|
||||||
*ptr = (BYTE)(cLine - ptr);
|
*ptr = (BYTE)(cLine - ptr);
|
||||||
printf("->%u, ", (unsigned)(*ptr));
|
|
||||||
}
|
}
|
||||||
printf("End\n");
|
|
||||||
|
|
||||||
return sLine;
|
return sLine;
|
||||||
}
|
}
|
||||||
@ -680,7 +675,6 @@ BYTE FAR * GetNextMemdiskLine(BYTE FAR *cLine, BYTE *pLine)
|
|||||||
|
|
||||||
int ws = TRUE; /* treat start of line same as if whitespace seen */
|
int ws = TRUE; /* treat start of line same as if whitespace seen */
|
||||||
BYTE FAR *ptr = cLine; /* start of current cfg line, where { was */
|
BYTE FAR *ptr = cLine; /* start of current cfg line, where { was */
|
||||||
printf("%u -> \n", (unsigned)(*cLine));
|
|
||||||
|
|
||||||
/* exit early if already at end of command line */
|
/* exit early if already at end of command line */
|
||||||
if (!*cLine) return cLine;
|
if (!*cLine) return cLine;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user