refactoring: nicer parameter name
This commit is contained in:
parent
f9b49f7e5e
commit
4679cb2815
|
@ -36,17 +36,17 @@ static uint64_t binaryLogCount = 0;
|
||||||
|
|
||||||
extern bool main_loop_started;
|
extern bool main_loop_started;
|
||||||
|
|
||||||
void writeSdLogLine(Writer& buffer) {
|
void writeSdLogLine(Writer& bufferedWriter) {
|
||||||
if (!main_loop_started)
|
if (!main_loop_started)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (binaryLogCount == 0) {
|
if (binaryLogCount == 0) {
|
||||||
writeFileHeader(buffer);
|
writeFileHeader(bufferedWriter);
|
||||||
} else {
|
} else {
|
||||||
updateTunerStudioState();
|
updateTunerStudioState();
|
||||||
size_t length = writeBlock(sdLogBuffer);
|
size_t length = writeBlock(sdLogBuffer);
|
||||||
efiAssertVoid(OBD_PCM_Processor_Fault, length <= efi::size(sdLogBuffer), "SD log buffer overflow");
|
efiAssertVoid(OBD_PCM_Processor_Fault, length <= efi::size(sdLogBuffer), "SD log buffer overflow");
|
||||||
buffer.write(sdLogBuffer, length);
|
bufferedWriter.write(sdLogBuffer, length);
|
||||||
}
|
}
|
||||||
|
|
||||||
binaryLogCount++;
|
binaryLogCount++;
|
||||||
|
|
Loading…
Reference in New Issue