From 89f67ad90f8cfcb7cbd58b3b0fef36af9e140858 Mon Sep 17 00:00:00 2001
From: Lioncash <mathew1800@gmail.com>
Date: Wed, 29 Nov 2017 18:53:01 -0500
Subject: [PATCH] services: Silence warnings related to logging

---
 src/core/hle/service/am/am.cpp   | 2 +-
 src/core/hle/service/ptm/ptm.cpp | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp
index da6acdd805..208ea1adac 100644
--- a/src/core/hle/service/am/am.cpp
+++ b/src/core/hle/service/am/am.cpp
@@ -320,7 +320,7 @@ InstallStatus InstallCIA(const std::string& path,
                 update_callback(total_bytes_read, file.GetSize());
             if (result.Failed()) {
                 LOG_ERROR(Service_AM, "CIA file installation aborted with error code %08x",
-                          result.Code());
+                          result.Code().raw);
                 return InstallStatus::ErrorAborted;
             }
             total_bytes_read += bytes_read;
diff --git a/src/core/hle/service/ptm/ptm.cpp b/src/core/hle/service/ptm/ptm.cpp
index 931623df86..a721618506 100644
--- a/src/core/hle/service/ptm/ptm.cpp
+++ b/src/core/hle/service/ptm/ptm.cpp
@@ -2,6 +2,7 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
+#include <cinttypes>
 #include "common/logging/log.h"
 #include "core/file_sys/errors.h"
 #include "core/file_sys/file_backend.h"
@@ -96,8 +97,8 @@ void GetStepHistory(Interface* self) {
     IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
     rb.Push(RESULT_SUCCESS);
 
-    LOG_WARNING(Service_PTM, "(STUBBED) called, from time(raw): 0x%llx, for %d hours", start_time,
-                hours);
+    LOG_WARNING(Service_PTM, "(STUBBED) called, from time(raw): 0x" PRIx64 ", for %u hours",
+                start_time, hours);
 }
 
 void GetTotalStepCount(Interface* self) {