From eefd97e80d0563fdc16f038c0194900d74279c0c Mon Sep 17 00:00:00 2001
From: Lioncash <mathew1800@gmail.com>
Date: Wed, 12 Feb 2020 01:14:45 -0500
Subject: [PATCH 1/2] bcat/backend: Prevent fmt exception in debug log within
 NullBackend::Clear()

A formatting specifier within Clear wasn't being used, which will cause
fmt to throw an exception. This fixes that.
---
 src/core/hle/service/bcat/backend/backend.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/hle/service/bcat/backend/backend.cpp b/src/core/hle/service/bcat/backend/backend.cpp
index 6f5ea095a7..826c899702 100644
--- a/src/core/hle/service/bcat/backend/backend.cpp
+++ b/src/core/hle/service/bcat/backend/backend.cpp
@@ -117,7 +117,7 @@ bool NullBackend::SynchronizeDirectory(TitleIDVersion title, std::string name,
 }
 
 bool NullBackend::Clear(u64 title_id) {
-    LOG_DEBUG(Service_BCAT, "called, title_id={:016X}");
+    LOG_DEBUG(Service_BCAT, "called, title_id={:016X}", title_id);
 
     return true;
 }

From f00a54f5081b7486e0a2f0bee8d15e3e41e186a0 Mon Sep 17 00:00:00 2001
From: Lioncash <mathew1800@gmail.com>
Date: Wed, 12 Feb 2020 01:18:26 -0500
Subject: [PATCH 2/2] bcat/backend: Make formatting of passphrase consistent in
 NullBackend::SetPassphrase()

Aligns the '=' to be consistent with the rest of the logs within this
source file.
---
 src/core/hle/service/bcat/backend/backend.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/hle/service/bcat/backend/backend.cpp b/src/core/hle/service/bcat/backend/backend.cpp
index 826c899702..def3410cca 100644
--- a/src/core/hle/service/bcat/backend/backend.cpp
+++ b/src/core/hle/service/bcat/backend/backend.cpp
@@ -123,7 +123,7 @@ bool NullBackend::Clear(u64 title_id) {
 }
 
 void NullBackend::SetPassphrase(u64 title_id, const Passphrase& passphrase) {
-    LOG_DEBUG(Service_BCAT, "called, title_id={:016X}, passphrase = {}", title_id,
+    LOG_DEBUG(Service_BCAT, "called, title_id={:016X}, passphrase={}", title_id,
               Common::HexToString(passphrase));
 }