From 71e87e9e35015a63245f2a335cfbdf0c45681163 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Mon, 25 Jun 2018 10:25:14 -0600 Subject: [PATCH] creport: fix a bunch of trivial errors --- stratosphere/creport/source/creport_crash_report.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stratosphere/creport/source/creport_crash_report.cpp b/stratosphere/creport/source/creport_crash_report.cpp index b098abc58..3a4ea3f19 100644 --- a/stratosphere/creport/source/creport_crash_report.cpp +++ b/stratosphere/creport/source/creport_crash_report.cpp @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -30,7 +31,7 @@ void CrashReport::SaveReport() { } /* Open report file. */ - snprintf(report_path, sizeof(report_path) - 1, "sdmc:/atmosphere/crash reports/%016lx_%016lx.log", timestamp, process_info.title_id), + snprintf(report_path, sizeof(report_path) - 1, "sdmc:/atmosphere/crash reports/%016lx_%016lx.log", timestamp, process_info.title_id); FILE *f_report = fopen(report_path, "w"); if (f_report == NULL) { return; @@ -214,7 +215,7 @@ bool CrashReport::IsAddressReadable(u64 address, u64 size, MemoryInfo *o_mi) { return true; } -bool GetCurrentTime(u64 *out) { +bool CrashReport::GetCurrentTime(u64 *out) { *out = 0; /* Verify that pcv isn't dead. */