nv: print rpc msg with DEBUG>=3 (#11247)

This commit is contained in:
nimlgen
2025-07-15 16:39:58 +03:00
committed by GitHub
parent 034e51bd36
commit 197d345804

View File

@@ -65,7 +65,7 @@ class NVRpcQueue:
self.rx.readPtr = (self.rx.readPtr + round_up(hdr.length, self.tx.msgSize) // self.tx.msgSize) % self.tx.msgCount
System.memory_barrier()
if DEBUG >= 2:
if DEBUG >= 3:
rpc_names = {**nv.c__Ea_NV_VGPU_MSG_FUNCTION_NOP__enumvalues, **nv.c__Ea_NV_VGPU_MSG_EVENT_FIRST_EVENT__enumvalues}
print(f"nv {self.gsp.nvdev.devfmt}: in RPC: {rpc_names.get(hdr.function, f'ev:{hdr.function:x}')}, res:{hdr.rpc_result:#x}")