mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-11-03 23:28:48 +00:00 
			
		
		
		
	log: replace all NGLOG with LOG
This commit is contained in:
		
							parent
							
								
									fde415968e
								
							
						
					
					
						commit
						7c5a76e58b
					
				
					 152 changed files with 1541 additions and 1541 deletions
				
			
		| 
						 | 
				
			
			@ -120,14 +120,14 @@ static ResultCode WriteHWRegs(u32 base_address, u32 size_in_bytes, const std::ve
 | 
			
		|||
    const u32 max_size_in_bytes = 0x80;
 | 
			
		||||
 | 
			
		||||
    if (base_address & 3 || base_address >= 0x420000) {
 | 
			
		||||
        NGLOG_ERROR(
 | 
			
		||||
        LOG_ERROR(
 | 
			
		||||
            Service_GSP,
 | 
			
		||||
            "Write address was out of range or misaligned! (address=0x{:08x}, size=0x{:08x})",
 | 
			
		||||
            base_address, size_in_bytes);
 | 
			
		||||
        return ERR_REGS_OUTOFRANGE_OR_MISALIGNED;
 | 
			
		||||
    } else if (size_in_bytes <= max_size_in_bytes) {
 | 
			
		||||
        if (size_in_bytes & 3) {
 | 
			
		||||
            NGLOG_ERROR(Service_GSP, "Misaligned size 0x{:08x}", size_in_bytes);
 | 
			
		||||
            LOG_ERROR(Service_GSP, "Misaligned size 0x{:08x}", size_in_bytes);
 | 
			
		||||
            return ERR_REGS_MISALIGNED;
 | 
			
		||||
        } else {
 | 
			
		||||
            size_t offset = 0;
 | 
			
		||||
| 
						 | 
				
			
			@ -144,7 +144,7 @@ static ResultCode WriteHWRegs(u32 base_address, u32 size_in_bytes, const std::ve
 | 
			
		|||
        }
 | 
			
		||||
 | 
			
		||||
    } else {
 | 
			
		||||
        NGLOG_ERROR(Service_GSP, "Out of range size 0x{:08x}", size_in_bytes);
 | 
			
		||||
        LOG_ERROR(Service_GSP, "Out of range size 0x{:08x}", size_in_bytes);
 | 
			
		||||
        return ERR_REGS_INVALID_SIZE;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -165,14 +165,14 @@ static ResultCode WriteHWRegsWithMask(u32 base_address, u32 size_in_bytes,
 | 
			
		|||
    const u32 max_size_in_bytes = 0x80;
 | 
			
		||||
 | 
			
		||||
    if (base_address & 3 || base_address >= 0x420000) {
 | 
			
		||||
        NGLOG_ERROR(
 | 
			
		||||
        LOG_ERROR(
 | 
			
		||||
            Service_GSP,
 | 
			
		||||
            "Write address was out of range or misaligned! (address=0x{:08x}, size=0x{:08x})",
 | 
			
		||||
            base_address, size_in_bytes);
 | 
			
		||||
        return ERR_REGS_OUTOFRANGE_OR_MISALIGNED;
 | 
			
		||||
    } else if (size_in_bytes <= max_size_in_bytes) {
 | 
			
		||||
        if (size_in_bytes & 3) {
 | 
			
		||||
            NGLOG_ERROR(Service_GSP, "Misaligned size 0x{:08x}", size_in_bytes);
 | 
			
		||||
            LOG_ERROR(Service_GSP, "Misaligned size 0x{:08x}", size_in_bytes);
 | 
			
		||||
            return ERR_REGS_MISALIGNED;
 | 
			
		||||
        } else {
 | 
			
		||||
            size_t offset = 0;
 | 
			
		||||
| 
						 | 
				
			
			@ -199,7 +199,7 @@ static ResultCode WriteHWRegsWithMask(u32 base_address, u32 size_in_bytes,
 | 
			
		|||
        }
 | 
			
		||||
 | 
			
		||||
    } else {
 | 
			
		||||
        NGLOG_ERROR(Service_GSP, "Out of range size 0x{:08x}", size_in_bytes);
 | 
			
		||||
        LOG_ERROR(Service_GSP, "Out of range size 0x{:08x}", size_in_bytes);
 | 
			
		||||
        return ERR_REGS_INVALID_SIZE;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -237,7 +237,7 @@ void GSP_GPU::ReadHWRegs(Kernel::HLERequestContext& ctx) {
 | 
			
		|||
    if ((reg_addr % 4) != 0 || reg_addr >= 0x420000) {
 | 
			
		||||
        IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
 | 
			
		||||
        rb.Push(ERR_REGS_OUTOFRANGE_OR_MISALIGNED);
 | 
			
		||||
        NGLOG_ERROR(Service_GSP, "Invalid address 0x{:08x}", reg_addr);
 | 
			
		||||
        LOG_ERROR(Service_GSP, "Invalid address 0x{:08x}", reg_addr);
 | 
			
		||||
        return;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -245,7 +245,7 @@ void GSP_GPU::ReadHWRegs(Kernel::HLERequestContext& ctx) {
 | 
			
		|||
    if ((size % 4) != 0) {
 | 
			
		||||
        IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
 | 
			
		||||
        rb.Push(ERR_REGS_MISALIGNED);
 | 
			
		||||
        NGLOG_ERROR(Service_GSP, "Invalid size 0x{:08x}", size);
 | 
			
		||||
        LOG_ERROR(Service_GSP, "Invalid size 0x{:08x}", size);
 | 
			
		||||
        return;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -319,7 +319,7 @@ void GSP_GPU::FlushDataCache(Kernel::HLERequestContext& ctx) {
 | 
			
		|||
    IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
 | 
			
		||||
    rb.Push(RESULT_SUCCESS);
 | 
			
		||||
 | 
			
		||||
    NGLOG_DEBUG(Service_GSP, "(STUBBED) called address=0x{:08X}, size=0x{:08X}, process={}",
 | 
			
		||||
    LOG_DEBUG(Service_GSP, "(STUBBED) called address=0x{:08X}, size=0x{:08X}, process={}",
 | 
			
		||||
                address, size, process->process_id);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -334,7 +334,7 @@ void GSP_GPU::InvalidateDataCache(Kernel::HLERequestContext& ctx) {
 | 
			
		|||
    IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
 | 
			
		||||
    rb.Push(RESULT_SUCCESS);
 | 
			
		||||
 | 
			
		||||
    NGLOG_DEBUG(Service_GSP, "(STUBBED) called address=0x{:08X}, size=0x{:08X}, process={}",
 | 
			
		||||
    LOG_DEBUG(Service_GSP, "(STUBBED) called address=0x{:08X}, size=0x{:08X}, process={}",
 | 
			
		||||
                address, size, process->process_id);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -345,7 +345,7 @@ void GSP_GPU::SetAxiConfigQoSMode(Kernel::HLERequestContext& ctx) {
 | 
			
		|||
    IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
 | 
			
		||||
    rb.Push(RESULT_SUCCESS);
 | 
			
		||||
 | 
			
		||||
    NGLOG_DEBUG(Service_GSP, "(STUBBED) called mode=0x{:08X}", mode);
 | 
			
		||||
    LOG_DEBUG(Service_GSP, "(STUBBED) called mode=0x{:08X}", mode);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void GSP_GPU::RegisterInterruptRelayQueue(Kernel::HLERequestContext& ctx) {
 | 
			
		||||
| 
						 | 
				
			
			@ -375,7 +375,7 @@ void GSP_GPU::RegisterInterruptRelayQueue(Kernel::HLERequestContext& ctx) {
 | 
			
		|||
    rb.Push(session_data->thread_id);
 | 
			
		||||
    rb.PushCopyObjects(shared_memory);
 | 
			
		||||
 | 
			
		||||
    NGLOG_DEBUG(Service_GSP, "called, flags=0x{:08X}", flags);
 | 
			
		||||
    LOG_DEBUG(Service_GSP, "called, flags=0x{:08X}", flags);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void GSP_GPU::UnregisterInterruptRelayQueue(Kernel::HLERequestContext& ctx) {
 | 
			
		||||
| 
						 | 
				
			
			@ -388,7 +388,7 @@ void GSP_GPU::UnregisterInterruptRelayQueue(Kernel::HLERequestContext& ctx) {
 | 
			
		|||
    IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
 | 
			
		||||
    rb.Push(RESULT_SUCCESS);
 | 
			
		||||
 | 
			
		||||
    NGLOG_DEBUG(Service_GSP, "called");
 | 
			
		||||
    LOG_DEBUG(Service_GSP, "called");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void GSP_GPU::SignalInterruptForThread(InterruptId interrupt_id, u32 thread_id) {
 | 
			
		||||
| 
						 | 
				
			
			@ -398,7 +398,7 @@ void GSP_GPU::SignalInterruptForThread(InterruptId interrupt_id, u32 thread_id)
 | 
			
		|||
 | 
			
		||||
    auto interrupt_event = session_data->interrupt_event;
 | 
			
		||||
    if (interrupt_event == nullptr) {
 | 
			
		||||
        NGLOG_WARNING(Service_GSP, "cannot synchronize until GSP event has been created!");
 | 
			
		||||
        LOG_WARNING(Service_GSP, "cannot synchronize until GSP event has been created!");
 | 
			
		||||
        return;
 | 
			
		||||
    }
 | 
			
		||||
    InterruptRelayQueue* interrupt_relay_queue = GetInterruptRelayQueue(shared_memory, thread_id);
 | 
			
		||||
| 
						 | 
				
			
			@ -436,7 +436,7 @@ void GSP_GPU::SignalInterruptForThread(InterruptId interrupt_id, u32 thread_id)
 | 
			
		|||
 */
 | 
			
		||||
void GSP_GPU::SignalInterrupt(InterruptId interrupt_id) {
 | 
			
		||||
    if (nullptr == shared_memory) {
 | 
			
		||||
        NGLOG_WARNING(Service_GSP, "cannot synchronize until GSP shared memory has been created!");
 | 
			
		||||
        LOG_WARNING(Service_GSP, "cannot synchronize until GSP shared memory has been created!");
 | 
			
		||||
        return;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -583,7 +583,7 @@ static void ExecuteCommand(const Command& command, u32 thread_id) {
 | 
			
		|||
    }
 | 
			
		||||
 | 
			
		||||
    default:
 | 
			
		||||
        NGLOG_ERROR(Service_GSP, "unknown command 0x{:08X}", (int)command.id.Value());
 | 
			
		||||
        LOG_ERROR(Service_GSP, "unknown command 0x{:08X}", (int)command.id.Value());
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (Pica::g_debug_context)
 | 
			
		||||
| 
						 | 
				
			
			@ -668,7 +668,7 @@ void GSP_GPU::ImportDisplayCaptureInfo(Kernel::HLERequestContext& ctx) {
 | 
			
		|||
    rb.PushRaw(top_entry);
 | 
			
		||||
    rb.PushRaw(bottom_entry);
 | 
			
		||||
 | 
			
		||||
    NGLOG_WARNING(Service_GSP, "called");
 | 
			
		||||
    LOG_WARNING(Service_GSP, "called");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void GSP_GPU::AcquireRight(Kernel::HLERequestContext& ctx) {
 | 
			
		||||
| 
						 | 
				
			
			@ -679,7 +679,7 @@ void GSP_GPU::AcquireRight(Kernel::HLERequestContext& ctx) {
 | 
			
		|||
 | 
			
		||||
    SessionData* session_data = GetSessionData(ctx.Session());
 | 
			
		||||
 | 
			
		||||
    NGLOG_WARNING(Service_GSP, "called flag={:08X} process={} thread_id={}", flag,
 | 
			
		||||
    LOG_WARNING(Service_GSP, "called flag={:08X} process={} thread_id={}", flag,
 | 
			
		||||
                  process->process_id, session_data->thread_id);
 | 
			
		||||
 | 
			
		||||
    IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
 | 
			
		||||
| 
						 | 
				
			
			@ -713,7 +713,7 @@ void GSP_GPU::ReleaseRight(Kernel::HLERequestContext& ctx) {
 | 
			
		|||
    IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
 | 
			
		||||
    rb.Push(RESULT_SUCCESS);
 | 
			
		||||
 | 
			
		||||
    NGLOG_WARNING(Service_GSP, "called");
 | 
			
		||||
    LOG_WARNING(Service_GSP, "called");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void GSP_GPU::StoreDataCache(Kernel::HLERequestContext& ctx) {
 | 
			
		||||
| 
						 | 
				
			
			@ -726,7 +726,7 @@ void GSP_GPU::StoreDataCache(Kernel::HLERequestContext& ctx) {
 | 
			
		|||
    IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
 | 
			
		||||
    rb.Push(RESULT_SUCCESS);
 | 
			
		||||
 | 
			
		||||
    NGLOG_DEBUG(Service_GSP, "(STUBBED) called address=0x{:08X}, size=0x{:08X}, process={}",
 | 
			
		||||
    LOG_DEBUG(Service_GSP, "(STUBBED) called address=0x{:08X}, size=0x{:08X}, process={}",
 | 
			
		||||
                address, size, process->process_id);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -738,7 +738,7 @@ void GSP_GPU::SetLedForceOff(Kernel::HLERequestContext& ctx) {
 | 
			
		|||
 | 
			
		||||
    IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
 | 
			
		||||
    rb.Push(RESULT_SUCCESS);
 | 
			
		||||
    NGLOG_DEBUG(Service_GSP, "(STUBBED) called");
 | 
			
		||||
    LOG_DEBUG(Service_GSP, "(STUBBED) called");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
SessionData* GSP_GPU::FindRegisteredThreadData(u32 thread_id) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue