citra-emu
/
citra
Archived
1
0
Fork 0

Merge pull request #3631 from daniellimws/boss-fmt

service/boss: Migrate logging macros
This commit is contained in:
Merry 2018-04-15 08:59:42 +01:00 committed by GitHub
commit 9e21094dea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 187 additions and 180 deletions

View File

@ -28,15 +28,15 @@ void InitializeSession(Service::Interface* self) {
if (translation != IPC::CallingPidDesc()) { if (translation != IPC::CallingPidDesc()) {
cmd_buff[0] = IPC::MakeHeader(0, 0x1, 0); // 0x40 cmd_buff[0] = IPC::MakeHeader(0, 0x1, 0); // 0x40
cmd_buff[1] = IPC::ERR_INVALID_BUFFER_DESCRIPTOR.raw; cmd_buff[1] = IPC::ERR_INVALID_BUFFER_DESCRIPTOR.raw;
LOG_ERROR(Service_BOSS, "The translation was invalid, translation=0x%08X", translation); NGLOG_ERROR(Service_BOSS, "The translation was invalid, translation={:#010X}", translation);
return; return;
} }
cmd_buff[0] = IPC::MakeHeader(0x1, 0x1, 0); cmd_buff[0] = IPC::MakeHeader(0x1, 0x1, 0);
cmd_buff[1] = RESULT_SUCCESS.raw; cmd_buff[1] = RESULT_SUCCESS.raw;
LOG_WARNING(Service_BOSS, NGLOG_WARNING(Service_BOSS,
"(STUBBED) unk_param=0x%016" PRIX64 ", translation=0x%08X, unk_param4=0x%08X", "(STUBBED) unk_param={:#018X}, translation={:#010X}, unk_param4={:#010X}",
unk_param, translation, unk_param4); unk_param, translation, unk_param4);
} }
@ -51,9 +51,9 @@ void RegisterStorage(Service::Interface* self) {
cmd_buff[0] = IPC::MakeHeader(0x2, 0x1, 0); cmd_buff[0] = IPC::MakeHeader(0x2, 0x1, 0);
cmd_buff[1] = RESULT_SUCCESS.raw; cmd_buff[1] = RESULT_SUCCESS.raw;
LOG_WARNING( NGLOG_WARNING(Service_BOSS,
Service_BOSS, "(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
"(STUBBED) unk_param1=0x%08X, unk_param2=0x%08X, unk_param3=0x%08X, unk_flag=0x%08X", "unk_flag={:#010X}",
unk_param1, unk_param2, unk_param3, unk_flag); unk_param1, unk_param2, unk_param3, unk_flag);
} }
@ -63,7 +63,7 @@ void UnregisterStorage(Service::Interface* self) {
cmd_buff[0] = IPC::MakeHeader(0x3, 0x1, 0); cmd_buff[0] = IPC::MakeHeader(0x3, 0x1, 0);
cmd_buff[1] = RESULT_SUCCESS.raw; cmd_buff[1] = RESULT_SUCCESS.raw;
LOG_WARNING(Service_BOSS, "(STUBBED) called"); NGLOG_WARNING(Service_BOSS, "(STUBBED) called");
} }
void GetStorageInfo(Service::Interface* self) { void GetStorageInfo(Service::Interface* self) {
@ -73,7 +73,7 @@ void GetStorageInfo(Service::Interface* self) {
cmd_buff[1] = RESULT_SUCCESS.raw; cmd_buff[1] = RESULT_SUCCESS.raw;
cmd_buff[2] = 0; // stub 0 cmd_buff[2] = 0; // stub 0
LOG_WARNING(Service_BOSS, "(STUBBED) called"); NGLOG_WARNING(Service_BOSS, "(STUBBED) called");
} }
void RegisterPrivateRootCa(Service::Interface* self) { void RegisterPrivateRootCa(Service::Interface* self) {
@ -88,7 +88,8 @@ void RegisterPrivateRootCa(Service::Interface* self) {
cmd_buff[2] = (buff_size << 4 | 0xA); cmd_buff[2] = (buff_size << 4 | 0xA);
cmd_buff[3] = buff_addr; cmd_buff[3] = buff_addr;
LOG_WARNING(Service_BOSS, "(STUBBED) translation=0x%08X, buff_addr=0x%08X, buff_size=0x%08X", NGLOG_WARNING(Service_BOSS,
"(STUBBED) translation={:#010X}, buff_addr{:#010X}, buff_size={:#010X}",
translation, buff_addr, buff_size); translation, buff_addr, buff_size);
} }
@ -111,10 +112,10 @@ void RegisterPrivateClientCert(Service::Interface* self) {
cmd_buff[2] = (buff2_size << 4 | 0xA); cmd_buff[2] = (buff2_size << 4 | 0xA);
cmd_buff[3] = buff2_addr; cmd_buff[3] = buff2_addr;
LOG_WARNING(Service_BOSS, NGLOG_WARNING(Service_BOSS,
"(STUBBED) unk_param1=0x%08X, unk_param2=0x%08X, " "(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, "
"translation1=0x%08X, buff1_addr=0x%08X, buff1_size=0x%08X, " "translation1={:#010X}, buff1_addr={:#010X}, buff1_size={:#010X}, "
"translation2=0x%08X, buff2_addr=0x%08X, buff2_size=0x%08X", "translation2={:#010X}, buff2_addr={:#010X}, buff2_size={:#010X}",
unk_param1, unk_param2, translation1, buff1_addr, buff1_size, translation2, unk_param1, unk_param2, translation1, buff1_addr, buff1_size, translation2,
buff2_addr, buff2_size); buff2_addr, buff2_size);
} }
@ -126,7 +127,7 @@ void GetNewArrivalFlag(Service::Interface* self) {
cmd_buff[1] = RESULT_SUCCESS.raw; cmd_buff[1] = RESULT_SUCCESS.raw;
cmd_buff[2] = new_arrival_flag; cmd_buff[2] = new_arrival_flag;
LOG_WARNING(Service_BOSS, "(STUBBED) new_arrival_flag=%u", new_arrival_flag); NGLOG_WARNING(Service_BOSS, "(STUBBED) new_arrival_flag={}", new_arrival_flag);
} }
void RegisterNewArrivalEvent(Service::Interface* self) { void RegisterNewArrivalEvent(Service::Interface* self) {
@ -138,7 +139,7 @@ void RegisterNewArrivalEvent(Service::Interface* self) {
cmd_buff[0] = IPC::MakeHeader(0x8, 0x1, 0); cmd_buff[0] = IPC::MakeHeader(0x8, 0x1, 0);
cmd_buff[1] = RESULT_SUCCESS.raw; cmd_buff[1] = RESULT_SUCCESS.raw;
LOG_WARNING(Service_BOSS, "(STUBBED) unk_param1=0x%08X, unk_param2=0x%08X", unk_param1, NGLOG_WARNING(Service_BOSS, "(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}", unk_param1,
unk_param2); unk_param2);
} }
@ -150,7 +151,7 @@ void SetOptoutFlag(Service::Interface* self) {
cmd_buff[0] = IPC::MakeHeader(0x9, 0x1, 0); cmd_buff[0] = IPC::MakeHeader(0x9, 0x1, 0);
cmd_buff[1] = RESULT_SUCCESS.raw; cmd_buff[1] = RESULT_SUCCESS.raw;
LOG_WARNING(Service_BOSS, "output_flag=%u", output_flag); NGLOG_WARNING(Service_BOSS, "output_flag={}", output_flag);
} }
void GetOptoutFlag(Service::Interface* self) { void GetOptoutFlag(Service::Interface* self) {
@ -160,7 +161,7 @@ void GetOptoutFlag(Service::Interface* self) {
cmd_buff[1] = RESULT_SUCCESS.raw; cmd_buff[1] = RESULT_SUCCESS.raw;
cmd_buff[2] = output_flag; cmd_buff[2] = output_flag;
LOG_WARNING(Service_BOSS, "output_flag=%u", output_flag); NGLOG_WARNING(Service_BOSS, "output_flag={}", output_flag);
} }
void RegisterTask(Service::Interface* self) { void RegisterTask(Service::Interface* self) {
@ -178,9 +179,9 @@ void RegisterTask(Service::Interface* self) {
cmd_buff[2] = (buff_size << 4 | 0xA); cmd_buff[2] = (buff_size << 4 | 0xA);
cmd_buff[3] = buff_addr; cmd_buff[3] = buff_addr;
LOG_WARNING(Service_BOSS, NGLOG_WARNING(Service_BOSS,
"(STUBBED) unk_param1=0x%08X, unk_param2=0x%08X, unk_param3=0x%08X, " "(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
"translation=0x%08X, buff_addr=0x%08X, buff_size=0x%08X", "translation={:#010X}, buff_addr={:#010X}, buff_size={:#010X}",
unk_param1, unk_param2, unk_param3, translation, buff_addr, buff_size); unk_param1, unk_param2, unk_param3, translation, buff_addr, buff_size);
} }
@ -198,9 +199,9 @@ void UnregisterTask(Service::Interface* self) {
cmd_buff[2] = (buff_size << 4 | 0xA); cmd_buff[2] = (buff_size << 4 | 0xA);
cmd_buff[3] = buff_addr; cmd_buff[3] = buff_addr;
LOG_WARNING(Service_BOSS, NGLOG_WARNING(Service_BOSS,
"(STUBBED) unk_param1=0x%08X, unk_param2=0x%08X, translation=0x%08X, " "(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, translation={:#010X}, "
"buff_addr=0x%08X, buff_size=0x%08X", "buff_addr={:#010X}, buff_size={:#010X}",
unk_param1, unk_param2, translation, buff_addr, buff_size); unk_param1, unk_param2, translation, buff_addr, buff_size);
} }
@ -218,9 +219,9 @@ void ReconfigureTask(Service::Interface* self) {
cmd_buff[2] = (buff_size << 4 | 0xA); cmd_buff[2] = (buff_size << 4 | 0xA);
cmd_buff[3] = buff_addr; cmd_buff[3] = buff_addr;
LOG_WARNING(Service_BOSS, NGLOG_WARNING(Service_BOSS,
"(STUBBED) unk_param1=0x%08X, unk_param2=0x%08X, translation=0x%08X, " "(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, translation={:#010X}, "
"buff_addr=0x%08X, buff_size=0x%08X", "buff_addr={:#010X}, buff_size={:#010X}",
unk_param1, unk_param2, translation, buff_addr, buff_size); unk_param1, unk_param2, translation, buff_addr, buff_size);
} }
@ -230,7 +231,7 @@ void GetTaskIdList(Service::Interface* self) {
cmd_buff[0] = IPC::MakeHeader(0xE, 0x1, 0); cmd_buff[0] = IPC::MakeHeader(0xE, 0x1, 0);
cmd_buff[1] = RESULT_SUCCESS.raw; cmd_buff[1] = RESULT_SUCCESS.raw;
LOG_WARNING(Service_BOSS, "(STUBBED) called"); NGLOG_WARNING(Service_BOSS, "(STUBBED) called");
} }
void GetStepIdList(Service::Interface* self) { void GetStepIdList(Service::Interface* self) {
@ -245,7 +246,8 @@ void GetStepIdList(Service::Interface* self) {
cmd_buff[2] = (buff_size << 4 | 0xA); cmd_buff[2] = (buff_size << 4 | 0xA);
cmd_buff[3] = buff_addr; cmd_buff[3] = buff_addr;
LOG_WARNING(Service_BOSS, "(STUBBED) translation=0x%08X, buff_addr=0x%08X, buff_size=0x%08X", NGLOG_WARNING(Service_BOSS,
"(STUBBED) translation={:#010X}, buff_addr={:#010X}, buff_size={:#010X}",
translation, buff_addr, buff_size); translation, buff_addr, buff_size);
} }
@ -267,11 +269,12 @@ void GetNsDataIdList(Service::Interface* self) {
cmd_buff[4] = (buff_size << 4 | 0xC); cmd_buff[4] = (buff_size << 4 | 0xC);
cmd_buff[5] = buff_addr; cmd_buff[5] = buff_addr;
LOG_WARNING(Service_BOSS, NGLOG_WARNING(Service_BOSS,
"(STUBBED) unk_param1=0x%08X, unk_param2=0x%08X, unk_param3=0x%08X, " "(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
"unk_param4=0x%08X, translation=0x%08X, " "unk_param4={:#010X}, translation={:#010X}, "
"buff_addr=0x%08X, buff_size=0x%08X", "buff_addr={:#010X}, buff_size={:#010X}",
unk_param1, unk_param2, unk_param3, unk_param4, translation, buff_addr, buff_size); unk_param1, unk_param2, unk_param3, unk_param4, translation, buff_addr,
buff_size);
} }
void GetOwnNsDataIdList(Service::Interface* self) { void GetOwnNsDataIdList(Service::Interface* self) {
@ -292,11 +295,12 @@ void GetOwnNsDataIdList(Service::Interface* self) {
cmd_buff[4] = (buff_size << 4 | 0xC); cmd_buff[4] = (buff_size << 4 | 0xC);
cmd_buff[5] = buff_addr; cmd_buff[5] = buff_addr;
LOG_WARNING(Service_BOSS, NGLOG_WARNING(Service_BOSS,
"(STUBBED) unk_param1=0x%08X, unk_param2=0x%08X, unk_param3=0x%08X, " "(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
"unk_param4=0x%08X, translation=0x%08X, " "unk_param4={:#010X}, translation={:#010X}, "
"buff_addr=0x%08X, buff_size=0x%08X", "buff_addr={:#010X}, buff_size={:#010X}",
unk_param1, unk_param2, unk_param3, unk_param4, translation, buff_addr, buff_size); unk_param1, unk_param2, unk_param3, unk_param4, translation, buff_addr,
buff_size);
} }
void GetNewDataNsDataIdList(Service::Interface* self) { void GetNewDataNsDataIdList(Service::Interface* self) {
@ -317,11 +321,12 @@ void GetNewDataNsDataIdList(Service::Interface* self) {
cmd_buff[4] = (buff_size << 4 | 0xC); cmd_buff[4] = (buff_size << 4 | 0xC);
cmd_buff[5] = buff_addr; cmd_buff[5] = buff_addr;
LOG_WARNING(Service_BOSS, NGLOG_WARNING(Service_BOSS,
"(STUBBED) unk_param1=0x%08X, unk_param2=0x%08X, unk_param3=0x%08X, " "(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
"unk_param4=0x%08X, translation=0x%08X, " "unk_param4={:#010X}, translation={:#010X}, "
"buff_addr=0x%08X, buff_size=0x%08X", "buff_addr={:#010X}, buff_size={:#010X}",
unk_param1, unk_param2, unk_param3, unk_param4, translation, buff_addr, buff_size); unk_param1, unk_param2, unk_param3, unk_param4, translation, buff_addr,
buff_size);
} }
void GetOwnNewDataNsDataIdList(Service::Interface* self) { void GetOwnNewDataNsDataIdList(Service::Interface* self) {
@ -342,11 +347,12 @@ void GetOwnNewDataNsDataIdList(Service::Interface* self) {
cmd_buff[4] = (buff_size << 4 | 0xC); cmd_buff[4] = (buff_size << 4 | 0xC);
cmd_buff[5] = buff_addr; cmd_buff[5] = buff_addr;
LOG_WARNING(Service_BOSS, NGLOG_WARNING(Service_BOSS,
"(STUBBED) unk_param1=0x%08X, unk_param2=0x%08X, unk_param3=0x%08X, " "(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
"unk_param4=0x%08X, translation=0x%08X, " "unk_param4={:#010X}, translation={:#010X}, "
"buff_addr=0x%08X, buff_size=0x%08X", "buff_addr={:#010X}, buff_size={:#010X}",
unk_param1, unk_param2, unk_param3, unk_param4, translation, buff_addr, buff_size); unk_param1, unk_param2, unk_param3, unk_param4, translation, buff_addr,
buff_size);
} }
void SendProperty(Service::Interface* self) { void SendProperty(Service::Interface* self) {
@ -363,9 +369,9 @@ void SendProperty(Service::Interface* self) {
cmd_buff[2] = (buff_size << 4 | 0xA); cmd_buff[2] = (buff_size << 4 | 0xA);
cmd_buff[3] = buff_addr; cmd_buff[3] = buff_addr;
LOG_WARNING(Service_BOSS, NGLOG_WARNING(Service_BOSS,
"(STUBBED) unk_param1=0x%08X, unk_param2=0x%08X, translation=0x%08X, " "(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, translation={:#010X}, "
"buff_addr=0x%08X, buff_size=0x%08X", "buff_addr={:#010X}, buff_size={:#010X}",
unk_param1, unk_param2, translation, buff_addr, buff_size); unk_param1, unk_param2, translation, buff_addr, buff_size);
} }
@ -382,9 +388,9 @@ void SendPropertyHandle(Service::Interface* self) {
cmd_buff[2] = (buff_size << 4 | 0xA); cmd_buff[2] = (buff_size << 4 | 0xA);
cmd_buff[3] = buff_addr; cmd_buff[3] = buff_addr;
LOG_WARNING(Service_BOSS, NGLOG_WARNING(Service_BOSS,
"(STUBBED) unk_param1=0x%08X, translation=0x%08X, " "(STUBBED) unk_param1={:#010X}, translation={:#010X}, "
"buff_addr=0x%08X, buff_size=0x%08X", "buff_addr={:#010X}, buff_size={:#010X}",
unk_param1, translation, buff_addr, buff_size); unk_param1, translation, buff_addr, buff_size);
} }
@ -402,9 +408,9 @@ void ReceiveProperty(Service::Interface* self) {
cmd_buff[3] = (buff_size << 4 | 0xC); cmd_buff[3] = (buff_size << 4 | 0xC);
cmd_buff[4] = buff_addr; cmd_buff[4] = buff_addr;
LOG_WARNING(Service_BOSS, NGLOG_WARNING(Service_BOSS,
"(STUBBED) unk_param1=0x%08X, buff_size=0x%08X, " "(STUBBED) unk_param1={:#010X}, buff_size={:#010X}, "
"translation=0x%08X, buff_addr=0x%08X", "translation={:#010X}, buff_addr={:#010X}",
unk_param1, buff_size, translation, buff_addr); unk_param1, buff_size, translation, buff_addr);
} }
@ -422,9 +428,9 @@ void UpdateTaskInterval(Service::Interface* self) {
cmd_buff[2] = (buff_size << 4 | 0xA); cmd_buff[2] = (buff_size << 4 | 0xA);
cmd_buff[3] = buff_addr; cmd_buff[3] = buff_addr;
LOG_WARNING(Service_BOSS, NGLOG_WARNING(Service_BOSS,
"(STUBBED) unk_param1=0x%08X, unk_param2=0x%08X, " "(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, "
"translation=0x%08X, buff_addr=0x%08X, buff_size=0x%08X", "translation={:#010X}, buff_addr={:#010X}, buff_size={:#010X}",
unk_param1, unk_param2, translation, buff_addr, buff_size); unk_param1, unk_param2, translation, buff_addr, buff_size);
} }
@ -441,9 +447,9 @@ void UpdateTaskCount(Service::Interface* self) {
cmd_buff[2] = (buff_size << 4 | 0xA); cmd_buff[2] = (buff_size << 4 | 0xA);
cmd_buff[3] = buff_addr; cmd_buff[3] = buff_addr;
LOG_WARNING(Service_BOSS, NGLOG_WARNING(Service_BOSS,
"(STUBBED) buff_size=0x%08X, unk_param2=0x%08X, " "(STUBBED) buff_size={:#010X}, unk_param2={:#010X}, "
"translation=0x%08X, buff_addr=0x%08X", "translation={:#010X}, buff_addr={:#010X}",
buff_size, unk_param2, translation, buff_addr); buff_size, unk_param2, translation, buff_addr);
} }
@ -461,9 +467,9 @@ void GetTaskInterval(Service::Interface* self) {
cmd_buff[3] = (buff_size << 4 | 0xA); cmd_buff[3] = (buff_size << 4 | 0xA);
cmd_buff[4] = buff_addr; cmd_buff[4] = buff_addr;
LOG_WARNING(Service_BOSS, NGLOG_WARNING(Service_BOSS,
"(STUBBED) unk_param1=0x%08X, translation=0x%08X, " "(STUBBED) unk_param1={:#010X}, translation={:#010X}, "
"buff_addr=0x%08X, buff_size=0x%08X", "buff_addr={:#010X}, buff_size={:#010X}",
unk_param1, translation, buff_addr, buff_size); unk_param1, translation, buff_addr, buff_size);
} }
@ -481,9 +487,9 @@ void GetTaskCount(Service::Interface* self) {
cmd_buff[3] = (buff_size << 4 | 0xA); cmd_buff[3] = (buff_size << 4 | 0xA);
cmd_buff[4] = buff_addr; cmd_buff[4] = buff_addr;
LOG_WARNING(Service_BOSS, NGLOG_WARNING(Service_BOSS,
"(STUBBED) unk_param1=0x%08X, translation=0x%08X, " "(STUBBED) unk_param1={:#010X}, translation={:#010X}, "
"buff_addr=0x%08X, buff_size=0x%08X", "buff_addr={:#010X}, buff_size={:#010X}",
unk_param1, translation, buff_addr, buff_size); unk_param1, translation, buff_addr, buff_size);
} }
@ -501,9 +507,9 @@ void GetTaskServiceStatus(Service::Interface* self) {
cmd_buff[3] = (buff_size << 4 | 0xA); cmd_buff[3] = (buff_size << 4 | 0xA);
cmd_buff[4] = buff_addr; cmd_buff[4] = buff_addr;
LOG_WARNING(Service_BOSS, NGLOG_WARNING(Service_BOSS,
"(STUBBED) unk_param1=0x%08X, translation=0x%08X, " "(STUBBED) unk_param1={:#010X}, translation={:#010X}, "
"buff_addr=0x%08X, buff_size=0x%08X", "buff_addr={:#010X}, buff_size={:#010X}",
unk_param1, translation, buff_addr, buff_size); unk_param1, translation, buff_addr, buff_size);
} }
@ -520,9 +526,9 @@ void StartTask(Service::Interface* self) {
cmd_buff[2] = (buff_size << 4 | 0xA); cmd_buff[2] = (buff_size << 4 | 0xA);
cmd_buff[3] = buff_addr; cmd_buff[3] = buff_addr;
LOG_WARNING(Service_BOSS, NGLOG_WARNING(Service_BOSS,
"(STUBBED) unk_param1=0x%08X, translation=0x%08X, " "(STUBBED) unk_param1={:#010X}, translation={:#010X}, "
"buff_addr=0x%08X, buff_size=0x%08X", "buff_addr={:#010X}, buff_size={:#010X}",
unk_param1, translation, buff_addr, buff_size); unk_param1, translation, buff_addr, buff_size);
} }
@ -539,9 +545,9 @@ void StartTaskImmediate(Service::Interface* self) {
cmd_buff[2] = (buff_size << 4 | 0xA); cmd_buff[2] = (buff_size << 4 | 0xA);
cmd_buff[3] = buff_addr; cmd_buff[3] = buff_addr;
LOG_WARNING(Service_BOSS, NGLOG_WARNING(Service_BOSS,
"(STUBBED) unk_param1=0x%08X, translation=0x%08X, " "(STUBBED) unk_param1={:#010X}, translation={:#010X}, "
"buff_addr=0x%08X, buff_size=0x%08X", "buff_addr={:#010X}, buff_size={:#010X}",
unk_param1, translation, buff_addr, buff_size); unk_param1, translation, buff_addr, buff_size);
} }
@ -558,9 +564,9 @@ void CancelTask(Service::Interface* self) {
cmd_buff[2] = (buff_size << 4 | 0xA); cmd_buff[2] = (buff_size << 4 | 0xA);
cmd_buff[3] = buff_addr; cmd_buff[3] = buff_addr;
LOG_WARNING(Service_BOSS, NGLOG_WARNING(Service_BOSS,
"(STUBBED) unk_param1=0x%08X, translation=0x%08X, " "(STUBBED) unk_param1={:#010X}, translation={:#010X}, "
"buff_addr=0x%08X, buff_size=0x%08X", "buff_addr={:#010X}, buff_size={:#010X}",
unk_param1, translation, buff_addr, buff_size); unk_param1, translation, buff_addr, buff_size);
} }
@ -572,7 +578,7 @@ void GetTaskFinishHandle(Service::Interface* self) {
cmd_buff[2] = 0; cmd_buff[2] = 0;
cmd_buff[3] = 0; // stub 0(This should be a handle of task_finish ?) cmd_buff[3] = 0; // stub 0(This should be a handle of task_finish ?)
LOG_WARNING(Service_BOSS, "(STUBBED) called"); NGLOG_WARNING(Service_BOSS, "(STUBBED) called");
} }
void GetTaskState(Service::Interface* self) { void GetTaskState(Service::Interface* self) {
@ -591,9 +597,9 @@ void GetTaskState(Service::Interface* self) {
cmd_buff[5] = (buff_size << 4 | 0xA); cmd_buff[5] = (buff_size << 4 | 0xA);
cmd_buff[6] = buff_addr; cmd_buff[6] = buff_addr;
LOG_WARNING(Service_BOSS, NGLOG_WARNING(Service_BOSS,
"(STUBBED) buff_size=0x%08X, unk_param2=0x%08X, " "(STUBBED) buff_size={:#010X}, unk_param2={:#010X}, "
"translation=0x%08X, buff_addr=0x%08X", "translation={:#010X}, buff_addr={:#010X}",
buff_size, unk_param2, translation, buff_addr); buff_size, unk_param2, translation, buff_addr);
} }
@ -613,9 +619,9 @@ void GetTaskResult(Service::Interface* self) {
cmd_buff[5] = (buff_size << 4 | 0xA); cmd_buff[5] = (buff_size << 4 | 0xA);
cmd_buff[6] = buff_addr; cmd_buff[6] = buff_addr;
LOG_WARNING(Service_BOSS, NGLOG_WARNING(Service_BOSS,
"(STUBBED) unk_param1=0x%08X, translation=0x%08X, " "(STUBBED) unk_param1={:#010X}, translation={:#010X}, "
"buff_addr=0x%08X, buff_size=0x%08X", "buff_addr={:#010X}, buff_size={:#010X}",
unk_param1, translation, buff_addr, buff_size); unk_param1, translation, buff_addr, buff_size);
} }
@ -635,9 +641,9 @@ void GetTaskCommErrorCode(Service::Interface* self) {
cmd_buff[5] = (buff_size << 4 | 0xA); cmd_buff[5] = (buff_size << 4 | 0xA);
cmd_buff[6] = buff_addr; cmd_buff[6] = buff_addr;
LOG_WARNING(Service_BOSS, NGLOG_WARNING(Service_BOSS,
"(STUBBED) unk_param1=0x%08X, translation=0x%08X, " "(STUBBED) unk_param1={:#010X}, translation={:#010X}, "
"buff_addr=0x%08X, buff_size=0x%08X", "buff_addr={:#010X}, buff_size={:#010X}",
unk_param1, translation, buff_addr, buff_size); unk_param1, translation, buff_addr, buff_size);
} }
@ -657,9 +663,9 @@ void GetTaskStatus(Service::Interface* self) {
cmd_buff[3] = (buff_size << 4 | 0xA); cmd_buff[3] = (buff_size << 4 | 0xA);
cmd_buff[4] = buff_addr; cmd_buff[4] = buff_addr;
LOG_WARNING(Service_BOSS, NGLOG_WARNING(Service_BOSS,
"(STUBBED) unk_param1=0x%08X, unk_param2=0x%08X, unk_param3=0x%08X, " "(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
"translation=0x%08X, buff_addr=0x%08X, buff_size=0x%08X", "translation={:#010X}, buff_addr={:#010X}, buff_size={:#010X}",
unk_param1, unk_param2, unk_param3, translation, buff_addr, buff_size); unk_param1, unk_param2, unk_param3, translation, buff_addr, buff_size);
} }
@ -678,9 +684,9 @@ void GetTaskError(Service::Interface* self) {
cmd_buff[3] = (buff_size << 4 | 0xA); cmd_buff[3] = (buff_size << 4 | 0xA);
cmd_buff[4] = buff_addr; cmd_buff[4] = buff_addr;
LOG_WARNING(Service_BOSS, NGLOG_WARNING(Service_BOSS,
"(STUBBED) unk_param1=0x%08X, unk_param2=0x%08X, translation=0x%08X, " "(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, translation={:#010X}, "
"buff_addr=0x%08X, buff_size=0x%08X", "buff_addr={:#010X}, buff_size={:#010X}",
unk_param1, unk_param2, translation, buff_addr, buff_size); unk_param1, unk_param2, translation, buff_addr, buff_size);
} }
@ -698,9 +704,9 @@ void GetTaskInfo(Service::Interface* self) {
cmd_buff[2] = (buff_size << 4 | 0xA); cmd_buff[2] = (buff_size << 4 | 0xA);
cmd_buff[3] = buff_addr; cmd_buff[3] = buff_addr;
LOG_WARNING(Service_BOSS, NGLOG_WARNING(Service_BOSS,
"(STUBBED) unk_param1=0x%08X, unk_param2=0x%08X, translation=0x%08X, " "(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, translation={:#010X}, "
"buff_addr=0x%08X, buff_size=0x%08X", "buff_addr={:#010X}, buff_size={:#010X}",
unk_param1, unk_param2, translation, buff_addr, buff_size); unk_param1, unk_param2, translation, buff_addr, buff_size);
} }
@ -712,7 +718,7 @@ void DeleteNsData(Service::Interface* self) {
cmd_buff[0] = IPC::MakeHeader(0x26, 0x1, 0); cmd_buff[0] = IPC::MakeHeader(0x26, 0x1, 0);
cmd_buff[1] = RESULT_SUCCESS.raw; cmd_buff[1] = RESULT_SUCCESS.raw;
LOG_WARNING(Service_BOSS, "(STUBBED) unk_param1=0x%08X", unk_param1); NGLOG_WARNING(Service_BOSS, "(STUBBED) unk_param1={:#010X}", unk_param1);
} }
void GetNsDataHeaderInfo(Service::Interface* self) { void GetNsDataHeaderInfo(Service::Interface* self) {
@ -730,9 +736,9 @@ void GetNsDataHeaderInfo(Service::Interface* self) {
cmd_buff[2] = (buff_size << 4 | 0xC); cmd_buff[2] = (buff_size << 4 | 0xC);
cmd_buff[3] = buff_addr; cmd_buff[3] = buff_addr;
LOG_WARNING(Service_BOSS, NGLOG_WARNING(Service_BOSS,
"(STUBBED) unk_param1=0x%08X, unk_param2=0x%08X, unk_param3=0x%08X, " "(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
"translation=0x%08X, buff_addr=0x%08X, buff_size=0x%08X", "translation={:#010X}, buff_addr={:#010X}, buff_size={:#010X}",
unk_param1, unk_param2, unk_param3, translation, buff_addr, buff_size); unk_param1, unk_param2, unk_param3, translation, buff_addr, buff_size);
} }
@ -754,11 +760,12 @@ void ReadNsData(Service::Interface* self) {
cmd_buff[4] = (buff_size << 4 | 0xC); cmd_buff[4] = (buff_size << 4 | 0xC);
cmd_buff[5] = buff_addr; cmd_buff[5] = buff_addr;
LOG_WARNING(Service_BOSS, NGLOG_WARNING(Service_BOSS,
"(STUBBED) unk_param1=0x%08X, unk_param2=0x%08X, unk_param3=0x%08X, " "(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
"unk_param4=0x%08X, translation=0x%08X, " "unk_param4={:#010X}, translation={:#010X}, "
"buff_addr=0x%08X, buff_size=0x%08X", "buff_addr={:#010X}, buff_size={:#010X}",
unk_param1, unk_param2, unk_param3, unk_param4, translation, buff_addr, buff_size); unk_param1, unk_param2, unk_param3, unk_param4, translation, buff_addr,
buff_size);
} }
void SetNsDataAdditionalInfo(Service::Interface* self) { void SetNsDataAdditionalInfo(Service::Interface* self) {
@ -770,7 +777,7 @@ void SetNsDataAdditionalInfo(Service::Interface* self) {
cmd_buff[0] = IPC::MakeHeader(0x29, 0x1, 0); cmd_buff[0] = IPC::MakeHeader(0x29, 0x1, 0);
cmd_buff[1] = RESULT_SUCCESS.raw; cmd_buff[1] = RESULT_SUCCESS.raw;
LOG_WARNING(Service_BOSS, "(STUBBED) unk_param1=0x%08X, unk_param2=0x%08X", unk_param1, NGLOG_WARNING(Service_BOSS, "(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}", unk_param1,
unk_param2); unk_param2);
} }
@ -783,7 +790,7 @@ void GetNsDataAdditionalInfo(Service::Interface* self) {
cmd_buff[1] = RESULT_SUCCESS.raw; cmd_buff[1] = RESULT_SUCCESS.raw;
cmd_buff[2] = 0; // stub 0 (32bit value) cmd_buff[2] = 0; // stub 0 (32bit value)
LOG_WARNING(Service_BOSS, "(STUBBED) unk_param1=0x%08X", unk_param1); NGLOG_WARNING(Service_BOSS, "(STUBBED) unk_param1={:#010X}", unk_param1);
} }
void SetNsDataNewFlag(Service::Interface* self) { void SetNsDataNewFlag(Service::Interface* self) {
@ -795,8 +802,8 @@ void SetNsDataNewFlag(Service::Interface* self) {
cmd_buff[0] = IPC::MakeHeader(0x2B, 0x1, 0); cmd_buff[0] = IPC::MakeHeader(0x2B, 0x1, 0);
cmd_buff[1] = RESULT_SUCCESS.raw; cmd_buff[1] = RESULT_SUCCESS.raw;
LOG_WARNING(Service_BOSS, "(STUBBED) unk_param1=0x%08X, ns_data_new_flag=0x%08X", unk_param1, NGLOG_WARNING(Service_BOSS, "(STUBBED) unk_param1={:#010X}, ns_data_new_flag={:#010X}",
ns_data_new_flag); unk_param1, ns_data_new_flag);
} }
void GetNsDataNewFlag(Service::Interface* self) { void GetNsDataNewFlag(Service::Interface* self) {
@ -808,8 +815,8 @@ void GetNsDataNewFlag(Service::Interface* self) {
cmd_buff[1] = RESULT_SUCCESS.raw; cmd_buff[1] = RESULT_SUCCESS.raw;
cmd_buff[2] = ns_data_new_flag; cmd_buff[2] = ns_data_new_flag;
LOG_WARNING(Service_BOSS, "(STUBBED) unk_param1=0x%08X, ns_data_new_flag=0x%08X", unk_param1, NGLOG_WARNING(Service_BOSS, "(STUBBED) unk_param1={:#010X}, ns_data_new_flag={:#010X}",
ns_data_new_flag); unk_param1, ns_data_new_flag);
} }
void GetNsDataLastUpdate(Service::Interface* self) { void GetNsDataLastUpdate(Service::Interface* self) {
@ -822,7 +829,7 @@ void GetNsDataLastUpdate(Service::Interface* self) {
cmd_buff[2] = 0; // stub 0 (32bit value) cmd_buff[2] = 0; // stub 0 (32bit value)
cmd_buff[3] = 0; // stub 0 (32bit value) cmd_buff[3] = 0; // stub 0 (32bit value)
LOG_WARNING(Service_BOSS, "(STUBBED) unk_param1=0x%08X", unk_param1); NGLOG_WARNING(Service_BOSS, "(STUBBED) unk_param1={:#010X}", unk_param1);
} }
void GetErrorCode(Service::Interface* self) { void GetErrorCode(Service::Interface* self) {
@ -834,7 +841,7 @@ void GetErrorCode(Service::Interface* self) {
cmd_buff[1] = RESULT_SUCCESS.raw; cmd_buff[1] = RESULT_SUCCESS.raw;
cmd_buff[2] = 0; // stub 0 (32bit value) cmd_buff[2] = 0; // stub 0 (32bit value)
LOG_WARNING(Service_BOSS, "(STUBBED) unk_param1=0x%08X", unk_param1); NGLOG_WARNING(Service_BOSS, "(STUBBED) unk_param1={:#010X}", unk_param1);
} }
void RegisterStorageEntry(Service::Interface* self) { void RegisterStorageEntry(Service::Interface* self) {
@ -849,9 +856,9 @@ void RegisterStorageEntry(Service::Interface* self) {
cmd_buff[0] = IPC::MakeHeader(0x2F, 0x1, 0); cmd_buff[0] = IPC::MakeHeader(0x2F, 0x1, 0);
cmd_buff[1] = RESULT_SUCCESS.raw; cmd_buff[1] = RESULT_SUCCESS.raw;
LOG_WARNING(Service_BOSS, NGLOG_WARNING(Service_BOSS,
"(STUBBED) unk_param1=0x%08X, unk_param2=0x%08X, unk_param3=0x%08X, " "(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
"unk_param4=0x%08X, unk_param5=0x%08X", "unk_param4={:#010X}, unk_param5={:#010X}",
unk_param1, unk_param2, unk_param3, unk_param4, unk_param5); unk_param1, unk_param2, unk_param3, unk_param4, unk_param5);
} }
@ -863,7 +870,7 @@ void GetStorageEntryInfo(Service::Interface* self) {
cmd_buff[2] = 0; // stub 0 (32bit value) cmd_buff[2] = 0; // stub 0 (32bit value)
cmd_buff[3] = 0; // stub 0 (16bit value) cmd_buff[3] = 0; // stub 0 (16bit value)
LOG_WARNING(Service_BOSS, "(STUBBED) called"); NGLOG_WARNING(Service_BOSS, "(STUBBED) called");
} }
void SetStorageOption(Service::Interface* self) { void SetStorageOption(Service::Interface* self) {
@ -877,9 +884,9 @@ void SetStorageOption(Service::Interface* self) {
cmd_buff[0] = IPC::MakeHeader(0x31, 0x1, 0); cmd_buff[0] = IPC::MakeHeader(0x31, 0x1, 0);
cmd_buff[1] = RESULT_SUCCESS.raw; cmd_buff[1] = RESULT_SUCCESS.raw;
LOG_WARNING(Service_BOSS, NGLOG_WARNING(Service_BOSS,
"(STUBBED) unk_param1=0x%08X, unk_param2=0x%08X, " "(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, "
"unk_param3=0x%08X, unk_param4=0x%08X", "unk_param3={:#010X}, unk_param4={:#010X}",
unk_param1, unk_param2, unk_param3, unk_param4); unk_param1, unk_param2, unk_param3, unk_param4);
} }
@ -893,7 +900,7 @@ void GetStorageOption(Service::Interface* self) {
cmd_buff[4] = 0; // stub 0 (16bit value) cmd_buff[4] = 0; // stub 0 (16bit value)
cmd_buff[5] = 0; // stub 0 (16bit value) cmd_buff[5] = 0; // stub 0 (16bit value)
LOG_WARNING(Service_BOSS, "(STUBBED) called"); NGLOG_WARNING(Service_BOSS, "(STUBBED) called");
} }
void StartBgImmediate(Service::Interface* self) { void StartBgImmediate(Service::Interface* self) {
@ -909,9 +916,9 @@ void StartBgImmediate(Service::Interface* self) {
cmd_buff[2] = (buff_size << 4 | 0xA); cmd_buff[2] = (buff_size << 4 | 0xA);
cmd_buff[3] = buff_addr; cmd_buff[3] = buff_addr;
LOG_WARNING(Service_BOSS, NGLOG_WARNING(Service_BOSS,
"(STUBBED) buff_size=0x%08X, unk_param2=0x%08X, " "(STUBBED) buff_size={:#010X}, unk_param2={:#010X}, "
"translation=0x%08X, buff_addr=0x%08X", "translation={:#010X}, buff_addr={:#010X}",
unk_param1, translation, buff_addr, buff_size); unk_param1, translation, buff_addr, buff_size);
} }
@ -929,9 +936,9 @@ void GetTaskActivePriority(Service::Interface* self) {
cmd_buff[3] = (buff_size << 4 | 0xA); cmd_buff[3] = (buff_size << 4 | 0xA);
cmd_buff[4] = buff_addr; cmd_buff[4] = buff_addr;
LOG_WARNING(Service_BOSS, NGLOG_WARNING(Service_BOSS,
"(STUBBED) buff_size=0x%08X, unk_param2=0x%08X, " "(STUBBED) buff_size={:#010X}, unk_param2={:#010X}, "
"translation=0x%08X, buff_addr=0x%08X", "translation={:#010X}, buff_addr={:#010X}",
unk_param1, translation, buff_addr, buff_size); unk_param1, translation, buff_addr, buff_size);
} }
@ -950,9 +957,9 @@ void RegisterImmediateTask(Service::Interface* self) {
cmd_buff[3] = (buff_size << 4 | 0xA); cmd_buff[3] = (buff_size << 4 | 0xA);
cmd_buff[4] = buff_addr; cmd_buff[4] = buff_addr;
LOG_WARNING(Service_BOSS, NGLOG_WARNING(Service_BOSS,
"(STUBBED) unk_param1=0x%08X, unk_param2=0x%08X, unk_param3=0x%08X, " "(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
"translation=0x%08X, buff_addr=0x%08X, buff_size=0x%08X", "translation={:#010X}, buff_addr={:#010X}, buff_size={:#010X}",
unk_param1, unk_param2, unk_param3, translation, buff_addr, buff_size); unk_param1, unk_param2, unk_param3, translation, buff_addr, buff_size);
} }
@ -975,10 +982,10 @@ void SetTaskQuery(Service::Interface* self) {
cmd_buff[2] = (buff2_size << 4 | 0xA); cmd_buff[2] = (buff2_size << 4 | 0xA);
cmd_buff[3] = buff2_addr; cmd_buff[3] = buff2_addr;
LOG_WARNING(Service_BOSS, NGLOG_WARNING(Service_BOSS,
"(STUBBED) unk_param1=0x%08X, unk_param2=0x%08X, " "(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, "
"translation1=0x%08X, buff1_addr=0x%08X, buff1_size=0x%08X, " "translation1={:#010X}, buff1_addr={:#010X}, buff1_size={:#010X}, "
"translation2=0x%08X, buff2_addr=0x%08X, buff2_size=0x%08X", "translation2={:#010X}, buff2_addr={:#010X}, buff2_size={:#010X}",
unk_param1, unk_param2, translation1, buff1_addr, buff1_size, translation2, unk_param1, unk_param2, translation1, buff1_addr, buff1_size, translation2,
buff2_addr, buff2_size); buff2_addr, buff2_size);
} }
@ -1002,10 +1009,10 @@ void GetTaskQuery(Service::Interface* self) {
cmd_buff[2] = (buff2_size << 4 | 0xC); cmd_buff[2] = (buff2_size << 4 | 0xC);
cmd_buff[3] = buff2_addr; cmd_buff[3] = buff2_addr;
LOG_WARNING(Service_BOSS, NGLOG_WARNING(Service_BOSS,
"(STUBBED) unk_param1=0x%08X, unk_param2=0x%08X, " "(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, "
"translation1=0x%08X, buff1_addr=0x%08X, buff1_size=0x%08X, " "translation1={:#010X}, buff1_addr={:#010X}, buff1_size={:#010X}, "
"translation2=0x%08X, buff2_addr=0x%08X, buff2_size=0x%08X", "translation2={:#010X}, buff2_addr={:#010X}, buff2_size={:#010X}",
unk_param1, unk_param2, translation1, buff1_addr, buff1_size, translation2, unk_param1, unk_param2, translation1, buff1_addr, buff1_size, translation2,
buff2_addr, buff2_size); buff2_addr, buff2_size);
} }