applets: Migrate logging macros
This commit is contained in:
parent
4c67f1c7c6
commit
958d39a76f
5 changed files with 6 additions and 6 deletions
|
@ -62,7 +62,7 @@ ResultCode Applet::Create(Service::APT::AppletId id,
|
||||||
applets[id] = std::make_shared<Mint>(id, std::move(manager));
|
applets[id] = std::make_shared<Mint>(id, std::move(manager));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
LOG_ERROR(Service_APT, "Could not create applet %u", static_cast<u32>(id));
|
NGLOG_ERROR(Service_APT, "Could not create applet {}", static_cast<u32>(id));
|
||||||
// TODO(Subv): Find the right error code
|
// TODO(Subv): Find the right error code
|
||||||
return ResultCode(ErrorDescription::NotFound, ErrorModule::Applet,
|
return ResultCode(ErrorDescription::NotFound, ErrorModule::Applet,
|
||||||
ErrorSummary::NotSupported, ErrorLevel::Permanent);
|
ErrorSummary::NotSupported, ErrorLevel::Permanent);
|
||||||
|
@ -114,7 +114,7 @@ void Applet::SendParameter(const Service::APT::MessageParameter& parameter) {
|
||||||
if (auto locked = manager.lock()) {
|
if (auto locked = manager.lock()) {
|
||||||
locked->CancelAndSendParameter(parameter);
|
locked->CancelAndSendParameter(parameter);
|
||||||
} else {
|
} else {
|
||||||
LOG_ERROR(Service_APT, "called after destructing applet manager");
|
NGLOG_ERROR(Service_APT, "called after destructing applet manager");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ namespace Applets {
|
||||||
|
|
||||||
ResultCode ErrEula::ReceiveParameter(const Service::APT::MessageParameter& parameter) {
|
ResultCode ErrEula::ReceiveParameter(const Service::APT::MessageParameter& parameter) {
|
||||||
if (parameter.signal != Service::APT::SignalType::Request) {
|
if (parameter.signal != Service::APT::SignalType::Request) {
|
||||||
LOG_ERROR(Service_APT, "unsupported signal %u", static_cast<u32>(parameter.signal));
|
NGLOG_ERROR(Service_APT, "unsupported signal {}", static_cast<u32>(parameter.signal));
|
||||||
UNIMPLEMENTED();
|
UNIMPLEMENTED();
|
||||||
// TODO(Subv): Find the right error code
|
// TODO(Subv): Find the right error code
|
||||||
return ResultCode(-1);
|
return ResultCode(-1);
|
||||||
|
|
|
@ -19,7 +19,7 @@ namespace Applets {
|
||||||
|
|
||||||
ResultCode MiiSelector::ReceiveParameter(const Service::APT::MessageParameter& parameter) {
|
ResultCode MiiSelector::ReceiveParameter(const Service::APT::MessageParameter& parameter) {
|
||||||
if (parameter.signal != Service::APT::SignalType::Request) {
|
if (parameter.signal != Service::APT::SignalType::Request) {
|
||||||
LOG_ERROR(Service_APT, "unsupported signal %u", static_cast<u32>(parameter.signal));
|
NGLOG_ERROR(Service_APT, "unsupported signal {}", static_cast<u32>(parameter.signal));
|
||||||
UNIMPLEMENTED();
|
UNIMPLEMENTED();
|
||||||
// TODO(Subv): Find the right error code
|
// TODO(Subv): Find the right error code
|
||||||
return ResultCode(-1);
|
return ResultCode(-1);
|
||||||
|
|
|
@ -11,7 +11,7 @@ namespace Applets {
|
||||||
|
|
||||||
ResultCode Mint::ReceiveParameter(const Service::APT::MessageParameter& parameter) {
|
ResultCode Mint::ReceiveParameter(const Service::APT::MessageParameter& parameter) {
|
||||||
if (parameter.signal != Service::APT::SignalType::Request) {
|
if (parameter.signal != Service::APT::SignalType::Request) {
|
||||||
LOG_ERROR(Service_APT, "unsupported signal %u", static_cast<u32>(parameter.signal));
|
NGLOG_ERROR(Service_APT, "unsupported signal {}", static_cast<u32>(parameter.signal));
|
||||||
UNIMPLEMENTED();
|
UNIMPLEMENTED();
|
||||||
// TODO(Subv): Find the right error code
|
// TODO(Subv): Find the right error code
|
||||||
return ResultCode(-1);
|
return ResultCode(-1);
|
||||||
|
|
|
@ -22,7 +22,7 @@ namespace Applets {
|
||||||
|
|
||||||
ResultCode SoftwareKeyboard::ReceiveParameter(Service::APT::MessageParameter const& parameter) {
|
ResultCode SoftwareKeyboard::ReceiveParameter(Service::APT::MessageParameter const& parameter) {
|
||||||
if (parameter.signal != Service::APT::SignalType::Request) {
|
if (parameter.signal != Service::APT::SignalType::Request) {
|
||||||
LOG_ERROR(Service_APT, "unsupported signal %u", static_cast<u32>(parameter.signal));
|
NGLOG_ERROR(Service_APT, "unsupported signal {}", static_cast<u32>(parameter.signal));
|
||||||
UNIMPLEMENTED();
|
UNIMPLEMENTED();
|
||||||
// TODO(Subv): Find the right error code
|
// TODO(Subv): Find the right error code
|
||||||
return ResultCode(-1);
|
return ResultCode(-1);
|
||||||
|
|
Loading…
Reference in a new issue