From 1df833cc16025b333f7d1f096761a1e3bff55335 Mon Sep 17 00:00:00 2001 From: sum2012 Date: Sun, 21 Feb 2016 13:18:03 +0800 Subject: [PATCH] Small fix and change log format --- Core/HLE/sceNet.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Core/HLE/sceNet.cpp b/Core/HLE/sceNet.cpp index ce1e211f6c..002eb03bef 100644 --- a/Core/HLE/sceNet.cpp +++ b/Core/HLE/sceNet.cpp @@ -468,18 +468,16 @@ static int sceNetUpnpGetNatInfo() static int sceNetGetDropRate(u32 dropRateAddr, u32 dropDurationAddr) { - INFO_LOG(SCENET, "sceNetGetDropRate %08x,%08x", dropRateAddr, dropDurationAddr); Memory::Write_U32(netDropRate, dropRateAddr); Memory::Write_U32(netDropDuration, dropDurationAddr); - return 0; + return hleLogSuccessInfoI(SCENET, 0); } static int sceNetSetDropRate(u32 dropRate, u32 dropDuration) { - INFO_LOG(SCENET, "sceNetSetDropRate dropRate %d, dropDuration %d", dropRate, dropDuration); netDropRate = dropRate; netDropDuration = dropDuration; - return 0; + return hleLogSuccessInfoI(SCENET, 0); } const HLEFunction sceNet[] = { @@ -574,8 +572,8 @@ const HLEFunction sceNetUpnp[] = { }; const HLEFunction sceNetIfhandle[] = { - { 0xC80181A2, &WrapI_UU, "sceNetGetDropRate", 'i', "ii" }, - { 0xFD8585E1, &WrapI_UU, "sceNetSetDropRate", 'i', "ii" }, + {0xC80181A2, &WrapI_UU, "sceNetGetDropRate", 'i', "pp" }, + {0xFD8585E1, &WrapI_UU, "sceNetSetDropRate", 'i', "ii" }, }; void Register_sceNet() {