log: replace all NGLOG with LOG

This commit is contained in:
wwylele
2018-06-29 14:18:07 +03:00
parent fde415968e
commit 7c5a76e58b
152 changed files with 1541 additions and 1541 deletions

View File

@ -69,7 +69,7 @@ void Y2R_U::SetInputFormat(Kernel::HLERequestContext& ctx) {
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
rb.Push(RESULT_SUCCESS);
NGLOG_DEBUG(Service_Y2R, "called input_format={}", static_cast<u8>(conversion.input_format));
LOG_DEBUG(Service_Y2R, "called input_format={}", static_cast<u8>(conversion.input_format));
}
void Y2R_U::GetInputFormat(Kernel::HLERequestContext& ctx) {
@ -79,7 +79,7 @@ void Y2R_U::GetInputFormat(Kernel::HLERequestContext& ctx) {
rb.Push(RESULT_SUCCESS);
rb.PushEnum(conversion.input_format);
NGLOG_DEBUG(Service_Y2R, "called input_format={}", static_cast<u8>(conversion.input_format));
LOG_DEBUG(Service_Y2R, "called input_format={}", static_cast<u8>(conversion.input_format));
}
void Y2R_U::SetOutputFormat(Kernel::HLERequestContext& ctx) {
@ -90,7 +90,7 @@ void Y2R_U::SetOutputFormat(Kernel::HLERequestContext& ctx) {
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
rb.Push(RESULT_SUCCESS);
NGLOG_DEBUG(Service_Y2R, "called output_format={}", static_cast<u8>(conversion.output_format));
LOG_DEBUG(Service_Y2R, "called output_format={}", static_cast<u8>(conversion.output_format));
}
void Y2R_U::GetOutputFormat(Kernel::HLERequestContext& ctx) {
@ -100,7 +100,7 @@ void Y2R_U::GetOutputFormat(Kernel::HLERequestContext& ctx) {
rb.Push(RESULT_SUCCESS);
rb.PushEnum(conversion.output_format);
NGLOG_DEBUG(Service_Y2R, "called output_format={}", static_cast<u8>(conversion.output_format));
LOG_DEBUG(Service_Y2R, "called output_format={}", static_cast<u8>(conversion.output_format));
}
void Y2R_U::SetRotation(Kernel::HLERequestContext& ctx) {
@ -111,7 +111,7 @@ void Y2R_U::SetRotation(Kernel::HLERequestContext& ctx) {
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
rb.Push(RESULT_SUCCESS);
NGLOG_DEBUG(Service_Y2R, "called rotation={}", static_cast<u8>(conversion.rotation));
LOG_DEBUG(Service_Y2R, "called rotation={}", static_cast<u8>(conversion.rotation));
}
void Y2R_U::GetRotation(Kernel::HLERequestContext& ctx) {
@ -121,7 +121,7 @@ void Y2R_U::GetRotation(Kernel::HLERequestContext& ctx) {
rb.Push(RESULT_SUCCESS);
rb.PushEnum(conversion.rotation);
NGLOG_DEBUG(Service_Y2R, "called rotation={}", static_cast<u8>(conversion.rotation));
LOG_DEBUG(Service_Y2R, "called rotation={}", static_cast<u8>(conversion.rotation));
}
void Y2R_U::SetBlockAlignment(Kernel::HLERequestContext& ctx) {
@ -132,7 +132,7 @@ void Y2R_U::SetBlockAlignment(Kernel::HLERequestContext& ctx) {
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
rb.Push(RESULT_SUCCESS);
NGLOG_DEBUG(Service_Y2R, "called block_alignment={}",
LOG_DEBUG(Service_Y2R, "called block_alignment={}",
static_cast<u8>(conversion.block_alignment));
}
@ -143,7 +143,7 @@ void Y2R_U::GetBlockAlignment(Kernel::HLERequestContext& ctx) {
rb.Push(RESULT_SUCCESS);
rb.PushEnum(conversion.block_alignment);
NGLOG_DEBUG(Service_Y2R, "called block_alignment={}",
LOG_DEBUG(Service_Y2R, "called block_alignment={}",
static_cast<u8>(conversion.block_alignment));
}
@ -155,7 +155,7 @@ void Y2R_U::SetSpacialDithering(Kernel::HLERequestContext& ctx) {
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
rb.Push(RESULT_SUCCESS);
NGLOG_WARNING(Service_Y2R, "(STUBBED) called");
LOG_WARNING(Service_Y2R, "(STUBBED) called");
}
void Y2R_U::GetSpacialDithering(Kernel::HLERequestContext& ctx) {
@ -165,7 +165,7 @@ void Y2R_U::GetSpacialDithering(Kernel::HLERequestContext& ctx) {
rb.Push(RESULT_SUCCESS);
rb.Push(spacial_dithering_enabled);
NGLOG_WARNING(Service_Y2R, "(STUBBED) called");
LOG_WARNING(Service_Y2R, "(STUBBED) called");
}
void Y2R_U::SetTemporalDithering(Kernel::HLERequestContext& ctx) {
@ -175,7 +175,7 @@ void Y2R_U::SetTemporalDithering(Kernel::HLERequestContext& ctx) {
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
rb.Push(RESULT_SUCCESS);
NGLOG_WARNING(Service_Y2R, "(STUBBED) called");
LOG_WARNING(Service_Y2R, "(STUBBED) called");
}
void Y2R_U::GetTemporalDithering(Kernel::HLERequestContext& ctx) {
@ -185,7 +185,7 @@ void Y2R_U::GetTemporalDithering(Kernel::HLERequestContext& ctx) {
rb.Push(RESULT_SUCCESS);
rb.Push(temporal_dithering_enabled);
NGLOG_WARNING(Service_Y2R, "(STUBBED) called");
LOG_WARNING(Service_Y2R, "(STUBBED) called");
}
void Y2R_U::SetTransferEndInterrupt(Kernel::HLERequestContext& ctx) {
@ -195,7 +195,7 @@ void Y2R_U::SetTransferEndInterrupt(Kernel::HLERequestContext& ctx) {
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
rb.Push(RESULT_SUCCESS);
NGLOG_WARNING(Service_Y2R, "(STUBBED) called");
LOG_WARNING(Service_Y2R, "(STUBBED) called");
}
void Y2R_U::GetTransferEndInterrupt(Kernel::HLERequestContext& ctx) {
@ -205,7 +205,7 @@ void Y2R_U::GetTransferEndInterrupt(Kernel::HLERequestContext& ctx) {
rb.Push(RESULT_SUCCESS);
rb.Push(transfer_end_interrupt_enabled);
NGLOG_WARNING(Service_Y2R, "(STUBBED) called");
LOG_WARNING(Service_Y2R, "(STUBBED) called");
}
void Y2R_U::GetTransferEndEvent(Kernel::HLERequestContext& ctx) {
@ -215,7 +215,7 @@ void Y2R_U::GetTransferEndEvent(Kernel::HLERequestContext& ctx) {
rb.Push(RESULT_SUCCESS);
rb.PushCopyObjects(completion_event);
NGLOG_DEBUG(Service_Y2R, "called");
LOG_DEBUG(Service_Y2R, "called");
}
void Y2R_U::SetSendingY(Kernel::HLERequestContext& ctx) {
@ -230,7 +230,7 @@ void Y2R_U::SetSendingY(Kernel::HLERequestContext& ctx) {
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
rb.Push(RESULT_SUCCESS);
NGLOG_DEBUG(Service_Y2R,
LOG_DEBUG(Service_Y2R,
"called image_size=0x{:08X}, transfer_unit={}, transfer_stride={}, "
"src_process_id={}",
conversion.src_Y.image_size, conversion.src_Y.transfer_unit, conversion.src_Y.gap,
@ -249,7 +249,7 @@ void Y2R_U::SetSendingU(Kernel::HLERequestContext& ctx) {
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
rb.Push(RESULT_SUCCESS);
NGLOG_DEBUG(Service_Y2R,
LOG_DEBUG(Service_Y2R,
"called image_size=0x{:08X}, transfer_unit={}, transfer_stride={}, "
"src_process_id={}",
conversion.src_U.image_size, conversion.src_U.transfer_unit, conversion.src_U.gap,
@ -269,7 +269,7 @@ void Y2R_U::SetSendingV(Kernel::HLERequestContext& ctx) {
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
rb.Push(RESULT_SUCCESS);
NGLOG_DEBUG(Service_Y2R,
LOG_DEBUG(Service_Y2R,
"called image_size=0x{:08X}, transfer_unit={}, transfer_stride={}, "
"src_process_id={}",
conversion.src_V.image_size, conversion.src_V.transfer_unit, conversion.src_V.gap,
@ -289,7 +289,7 @@ void Y2R_U::SetSendingYUYV(Kernel::HLERequestContext& ctx) {
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
rb.Push(RESULT_SUCCESS);
NGLOG_DEBUG(Service_Y2R,
LOG_DEBUG(Service_Y2R,
"called image_size=0x{:08X}, transfer_unit={}, transfer_stride={}, "
"src_process_id={}",
conversion.src_YUYV.image_size, conversion.src_YUYV.transfer_unit,
@ -303,7 +303,7 @@ void Y2R_U::IsFinishedSendingYuv(Kernel::HLERequestContext& ctx) {
rb.Push(RESULT_SUCCESS);
rb.Push<u8>(1);
NGLOG_WARNING(Service_Y2R, "(STUBBED) called");
LOG_WARNING(Service_Y2R, "(STUBBED) called");
}
void Y2R_U::IsFinishedSendingY(Kernel::HLERequestContext& ctx) {
@ -313,7 +313,7 @@ void Y2R_U::IsFinishedSendingY(Kernel::HLERequestContext& ctx) {
rb.Push(RESULT_SUCCESS);
rb.Push<u8>(1);
NGLOG_WARNING(Service_Y2R, "(STUBBED) called");
LOG_WARNING(Service_Y2R, "(STUBBED) called");
}
void Y2R_U::IsFinishedSendingU(Kernel::HLERequestContext& ctx) {
@ -323,7 +323,7 @@ void Y2R_U::IsFinishedSendingU(Kernel::HLERequestContext& ctx) {
rb.Push(RESULT_SUCCESS);
rb.Push<u8>(1);
NGLOG_WARNING(Service_Y2R, "(STUBBED) called");
LOG_WARNING(Service_Y2R, "(STUBBED) called");
}
void Y2R_U::IsFinishedSendingV(Kernel::HLERequestContext& ctx) {
@ -333,7 +333,7 @@ void Y2R_U::IsFinishedSendingV(Kernel::HLERequestContext& ctx) {
rb.Push(RESULT_SUCCESS);
rb.Push<u8>(1);
NGLOG_WARNING(Service_Y2R, "(STUBBED) called");
LOG_WARNING(Service_Y2R, "(STUBBED) called");
}
void Y2R_U::SetReceiving(Kernel::HLERequestContext& ctx) {
@ -349,7 +349,7 @@ void Y2R_U::SetReceiving(Kernel::HLERequestContext& ctx) {
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
rb.Push(RESULT_SUCCESS);
NGLOG_DEBUG(Service_Y2R,
LOG_DEBUG(Service_Y2R,
"called image_size=0x{:08X}, transfer_unit={}, transfer_stride={}, "
"dst_process_id={}",
conversion.dst.image_size, conversion.dst.transfer_unit, conversion.dst.gap,
@ -363,7 +363,7 @@ void Y2R_U::IsFinishedReceiving(Kernel::HLERequestContext& ctx) {
rb.Push(RESULT_SUCCESS);
rb.Push<u8>(1);
NGLOG_WARNING(Service_Y2R, "(STUBBED) called");
LOG_WARNING(Service_Y2R, "(STUBBED) called");
}
void Y2R_U::SetInputLineWidth(Kernel::HLERequestContext& ctx) {
@ -373,7 +373,7 @@ void Y2R_U::SetInputLineWidth(Kernel::HLERequestContext& ctx) {
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
rb.Push(conversion.SetInputLineWidth(input_line_width));
NGLOG_DEBUG(Service_Y2R, "called input_line_width={}", input_line_width);
LOG_DEBUG(Service_Y2R, "called input_line_width={}", input_line_width);
}
void Y2R_U::GetInputLineWidth(Kernel::HLERequestContext& ctx) {
@ -383,7 +383,7 @@ void Y2R_U::GetInputLineWidth(Kernel::HLERequestContext& ctx) {
rb.Push(RESULT_SUCCESS);
rb.Push(conversion.input_line_width);
NGLOG_DEBUG(Service_Y2R, "called input_line_width={}", conversion.input_line_width);
LOG_DEBUG(Service_Y2R, "called input_line_width={}", conversion.input_line_width);
}
void Y2R_U::SetInputLines(Kernel::HLERequestContext& ctx) {
@ -393,7 +393,7 @@ void Y2R_U::SetInputLines(Kernel::HLERequestContext& ctx) {
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
rb.Push(conversion.SetInputLines(input_lines));
NGLOG_DEBUG(Service_Y2R, "called input_lines={}", input_lines);
LOG_DEBUG(Service_Y2R, "called input_lines={}", input_lines);
}
void Y2R_U::GetInputLines(Kernel::HLERequestContext& ctx) {
@ -403,7 +403,7 @@ void Y2R_U::GetInputLines(Kernel::HLERequestContext& ctx) {
rb.Push(RESULT_SUCCESS);
rb.Push(static_cast<u32>(conversion.input_lines));
NGLOG_DEBUG(Service_Y2R, "called input_lines={}", conversion.input_lines);
LOG_DEBUG(Service_Y2R, "called input_lines={}", conversion.input_lines);
}
void Y2R_U::SetCoefficient(Kernel::HLERequestContext& ctx) {
@ -414,7 +414,7 @@ void Y2R_U::SetCoefficient(Kernel::HLERequestContext& ctx) {
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
rb.Push(RESULT_SUCCESS);
NGLOG_DEBUG(Service_Y2R, "called coefficients=[{:X}, {:X}, {:X}, {:X}, {:X}, {:X}, {:X}, {:X}]",
LOG_DEBUG(Service_Y2R, "called coefficients=[{:X}, {:X}, {:X}, {:X}, {:X}, {:X}, {:X}, {:X}]",
conversion.coefficients[0], conversion.coefficients[1], conversion.coefficients[2],
conversion.coefficients[3], conversion.coefficients[4], conversion.coefficients[5],
conversion.coefficients[6], conversion.coefficients[7]);
@ -427,7 +427,7 @@ void Y2R_U::GetCoefficient(Kernel::HLERequestContext& ctx) {
rb.Push(RESULT_SUCCESS);
rb.PushRaw(conversion.coefficients);
NGLOG_DEBUG(Service_Y2R, "called");
LOG_DEBUG(Service_Y2R, "called");
}
void Y2R_U::SetStandardCoefficient(Kernel::HLERequestContext& ctx) {
@ -437,7 +437,7 @@ void Y2R_U::SetStandardCoefficient(Kernel::HLERequestContext& ctx) {
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
rb.Push(conversion.SetStandardCoefficient(static_cast<StandardCoefficient>(index)));
NGLOG_DEBUG(Service_Y2R, "called standard_coefficient={}", index);
LOG_DEBUG(Service_Y2R, "called standard_coefficient={}", index);
}
void Y2R_U::GetStandardCoefficient(Kernel::HLERequestContext& ctx) {
@ -449,13 +449,13 @@ void Y2R_U::GetStandardCoefficient(Kernel::HLERequestContext& ctx) {
rb.Push(RESULT_SUCCESS);
rb.PushRaw(standard_coefficients[index]);
NGLOG_DEBUG(Service_Y2R, "called standard_coefficient={} ", index);
LOG_DEBUG(Service_Y2R, "called standard_coefficient={} ", index);
} else {
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
rb.Push(ResultCode(ErrorDescription::InvalidEnumValue, ErrorModule::CAM,
ErrorSummary::InvalidArgument, ErrorLevel::Usage));
NGLOG_ERROR(Service_Y2R, "called standard_coefficient={} The argument is invalid!", index);
LOG_ERROR(Service_Y2R, "called standard_coefficient={} The argument is invalid!", index);
}
}
@ -466,7 +466,7 @@ void Y2R_U::SetAlpha(Kernel::HLERequestContext& ctx) {
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
rb.Push(RESULT_SUCCESS);
NGLOG_DEBUG(Service_Y2R, "called alpha={}", conversion.alpha);
LOG_DEBUG(Service_Y2R, "called alpha={}", conversion.alpha);
}
void Y2R_U::GetAlpha(Kernel::HLERequestContext& ctx) {
@ -476,7 +476,7 @@ void Y2R_U::GetAlpha(Kernel::HLERequestContext& ctx) {
rb.Push(RESULT_SUCCESS);
rb.Push(conversion.alpha);
NGLOG_DEBUG(Service_Y2R, "called alpha={}", conversion.alpha);
LOG_DEBUG(Service_Y2R, "called alpha={}", conversion.alpha);
}
void Y2R_U::SetDitheringWeightParams(Kernel::HLERequestContext& ctx) {
@ -485,7 +485,7 @@ void Y2R_U::SetDitheringWeightParams(Kernel::HLERequestContext& ctx) {
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
rb.Push(RESULT_SUCCESS);
NGLOG_DEBUG(Service_Y2R, "called");
LOG_DEBUG(Service_Y2R, "called");
}
void Y2R_U::GetDitheringWeightParams(Kernel::HLERequestContext& ctx) {
@ -495,7 +495,7 @@ void Y2R_U::GetDitheringWeightParams(Kernel::HLERequestContext& ctx) {
rb.Push(RESULT_SUCCESS);
rb.PushRaw(dithering_weight_params);
NGLOG_DEBUG(Service_Y2R, "called");
LOG_DEBUG(Service_Y2R, "called");
}
void Y2R_U::StartConversion(Kernel::HLERequestContext& ctx) {
@ -514,7 +514,7 @@ void Y2R_U::StartConversion(Kernel::HLERequestContext& ctx) {
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
rb.Push(RESULT_SUCCESS);
NGLOG_DEBUG(Service_Y2R, "called");
LOG_DEBUG(Service_Y2R, "called");
}
void Y2R_U::StopConversion(Kernel::HLERequestContext& ctx) {
@ -523,7 +523,7 @@ void Y2R_U::StopConversion(Kernel::HLERequestContext& ctx) {
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
rb.Push(RESULT_SUCCESS);
NGLOG_DEBUG(Service_Y2R, "called");
LOG_DEBUG(Service_Y2R, "called");
}
void Y2R_U::IsBusyConversion(Kernel::HLERequestContext& ctx) {
@ -533,7 +533,7 @@ void Y2R_U::IsBusyConversion(Kernel::HLERequestContext& ctx) {
rb.Push(RESULT_SUCCESS);
rb.Push<u8>(0); // StartConversion always finishes immediately
NGLOG_DEBUG(Service_Y2R, "called");
LOG_DEBUG(Service_Y2R, "called");
}
void Y2R_U::SetPackageParameter(Kernel::HLERequestContext& ctx) {
@ -567,7 +567,7 @@ cleanup:
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
rb.Push(result);
NGLOG_DEBUG(Service_Y2R,
LOG_DEBUG(Service_Y2R,
"called input_format={} output_format={} rotation={} block_alignment={} "
"input_line_width={} input_lines={} standard_coefficient={} reserved={} alpha={:X}",
static_cast<u8>(params.input_format), static_cast<u8>(params.output_format),
@ -583,7 +583,7 @@ void Y2R_U::PingProcess(Kernel::HLERequestContext& ctx) {
rb.Push(RESULT_SUCCESS);
rb.Push<u8>(0);
NGLOG_WARNING(Service_Y2R, "(STUBBED) called");
LOG_WARNING(Service_Y2R, "(STUBBED) called");
}
void Y2R_U::DriverInitialize(Kernel::HLERequestContext& ctx) {
@ -610,7 +610,7 @@ void Y2R_U::DriverInitialize(Kernel::HLERequestContext& ctx) {
rb.Push(RESULT_SUCCESS);
NGLOG_DEBUG(Service_Y2R, "called");
LOG_DEBUG(Service_Y2R, "called");
}
void Y2R_U::DriverFinalize(Kernel::HLERequestContext& ctx) {
@ -619,7 +619,7 @@ void Y2R_U::DriverFinalize(Kernel::HLERequestContext& ctx) {
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
rb.Push(RESULT_SUCCESS);
NGLOG_DEBUG(Service_Y2R, "called");
LOG_DEBUG(Service_Y2R, "called");
}
void Y2R_U::GetPackageParameter(Kernel::HLERequestContext& ctx) {
@ -629,7 +629,7 @@ void Y2R_U::GetPackageParameter(Kernel::HLERequestContext& ctx) {
rb.Push(RESULT_SUCCESS);
rb.PushRaw(conversion);
NGLOG_DEBUG(Service_Y2R, "called");
LOG_DEBUG(Service_Y2R, "called");
}
Y2R_U::Y2R_U() : ServiceFramework("y2r:u", 1) {