Updaterのログを残すように

パスワードはログに残さないように

git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@20 385bec56-5757-e545-9c3a-d8741f4650f1
This commit is contained in:
N2614 2011-02-07 01:32:28 +00:00
parent a08546ff0f
commit ab767e5f96
2 changed files with 9 additions and 10 deletions

View File

@ -964,9 +964,6 @@ bool ReadSetting()
} }
break; break;
} }
COMMON_LOGGER("PASS = %s\n", networkSetting.wireless.essidSecurity.passphrase);
} }
} }

View File

@ -22,6 +22,8 @@
#include <nn/ac/private/ac.h> #include <nn/ac/private/ac.h>
#include <nn/ac/CTR/private/ac_InternalApi.h> #include <nn/ac/CTR/private/ac_InternalApi.h>
#include "CommonLogger.h"
namespace ConsoleRestore namespace ConsoleRestore
{ {
@ -38,7 +40,7 @@ do { \
ECCustomerSupportCode csc; \ ECCustomerSupportCode csc; \
NN_UTIL_PANIC_IF_FAILED( \ NN_UTIL_PANIC_IF_FAILED( \
nn::nim::Updater::GetCustomerSupportCode(&csc)); \ nn::nim::Updater::GetCustomerSupportCode(&csc)); \
NN_LOG("CSCode: %d\n", csc); \ COMMON_LOGGER("CSCode: %d\n", csc); \
nn::dbg::PrintResult(result); \ nn::dbg::PrintResult(result); \
s_Result = result; \ s_Result = result; \
goto LABEL_FINALIZE; \ goto LABEL_FINALIZE; \
@ -62,8 +64,8 @@ nn::Result PrintNetworkSetting()
{ {
nn::ac::NetworkSetting networkSetting; nn::ac::NetworkSetting networkSetting;
NN_UTIL_RETURN_IF_FAILED(nn::ac::LoadNetworkSetting(0, networkSetting)); NN_UTIL_RETURN_IF_FAILED(nn::ac::LoadNetworkSetting(0, networkSetting));
NN_LOG("SSID: %s\n", networkSetting.wireless.essidSecurity.ssid); COMMON_LOGGER("SSID: %s\n", networkSetting.wireless.essidSecurity.ssid);
NN_LOG("DNS : %d.%d.%d.%d\n", COMMON_LOGGER("DNS : %d.%d.%d.%d\n",
networkSetting.ip.dns[0][0], networkSetting.ip.dns[0][1], networkSetting.ip.dns[0][0], networkSetting.ip.dns[0][1],
networkSetting.ip.dns[0][2], networkSetting.ip.dns[0][3]); networkSetting.ip.dns[0][2], networkSetting.ip.dns[0][3]);
return nn::ResultSuccess(); return nn::ResultSuccess();
@ -131,8 +133,8 @@ void UpdateThreadFunc()
countryStr = nn::cfg::GetCountryCodeA2(country); countryStr = nn::cfg::GetCountryCodeA2(country);
regionStr = nn::cfg::GetRegionCodeA3(region); regionStr = nn::cfg::GetRegionCodeA3(region);
NN_LOG("[Updater] country:%2d:%s\n", country, countryStr); COMMON_LOGGER("[Updater] country:%2d:%s\n", country, countryStr);
NN_LOG("[Updater] region :%2d:%s\n", region, regionStr); COMMON_LOGGER("[Updater] region :%2d:%s\n", region, regionStr);
/* ------------------------------------------------------------------- /* -------------------------------------------------------------------
Initialize Initialize
@ -184,13 +186,13 @@ void UpdateThreadFunc()
if (progress.state == nn::nim::NUP_STATE_NO_NEED) if (progress.state == nn::nim::NUP_STATE_NO_NEED)
{ {
NN_LOG("[Updater] No need to NetworkUpdate\n"); COMMON_LOGGER("[Updater] No need to NetworkUpdate\n");
s_Progress = 100; s_Progress = 100;
break; break;
} }
if (progress.state == nn::nim::NUP_STATE_FINISHED) if (progress.state == nn::nim::NUP_STATE_FINISHED)
{ {
NN_LOG("[Updater] Finished NetworkUpdate\n"); COMMON_LOGGER("[Updater] Finished NetworkUpdate\n");
s_Progress = 100; s_Progress = 100;
break; break;
} }