update PrintInt and change PutString to PutInt

This commit is contained in:
ChenYen-Yen
2024-10-22 16:27:49 +08:00
parent 486f032cf0
commit b18dbf056f
8 changed files with 21 additions and 35 deletions

View File

@@ -107,10 +107,10 @@ SynchConsoleOutput::PutChar(char ch)
}
void
SynchConsoleOutput::PutString(char *str)
SynchConsoleOutput::PutInt(int value)
{
lock->Acquire();
consoleOutput->PutString(str);
consoleOutput->PutInt(value);
waitFor->P();
lock->Release();
}