From c14c6d0f0de5cf677bd16dbd5eacbd98ea734043 Mon Sep 17 00:00:00 2001 From: Michael Kuc Date: Tue, 10 Sep 2019 10:31:06 +0100 Subject: [PATCH] Fix incorrect paths for debug files. --- Streams.cpp | 12 ++++++------ _Architecture.hpp | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Streams.cpp b/Streams.cpp index 4d4b027..1e32370 100644 --- a/Streams.cpp +++ b/Streams.cpp @@ -54,7 +54,7 @@ shared_ptr getHostDescriptor() { #ifdef DEBUG_STREAMS shared_ptr getComHostStream() { - static shared_ptr stream{ fopen((cacheDirectory + "comhost.txt").c_str(), "wb"), + static shared_ptr stream{ fopen((cacheDirectory + "/comhost.txt").c_str(), "wb"), [](FILE* f) { clog << "Closing comhost stream" << endl; fclose(f); @@ -68,7 +68,7 @@ shared_ptr getComHostStream() { shared_ptr getHostPacketStream() { static shared_ptr stream{ - initHTML(fopen((cacheDirectory + "hostpackets.html").c_str(), "wb"), "Host Packets"), + initHTML(fopen((cacheDirectory + "/hostpackets.html").c_str(), "wb"), "Host Packets"), [](FILE* f) { clog << "Closing hostPackets stream" << endl; closeHTML(f); @@ -83,7 +83,7 @@ shared_ptr getHostPacketStream() { shared_ptr getHostAPDUStream() { static shared_ptr stream{ - initHTML(fopen((cacheDirectory + "hostAPDU.html").c_str(), "wb"), "Host APDU"), + initHTML(fopen((cacheDirectory + "/hostAPDU.html").c_str(), "wb"), "Host APDU"), [](FILE* f) { clog << "Closing host APDU stream" << endl; closeHTML(f); @@ -97,7 +97,7 @@ shared_ptr getHostAPDUStream() { } shared_ptr getComDevStream() { - static shared_ptr stream{ fopen((cacheDirectory + "comdev.txt").c_str(), "wb"), + static shared_ptr stream{ fopen((cacheDirectory + "/comdev.txt").c_str(), "wb"), [](FILE* f) { clog << "Closing comdev stream" << endl; fclose(f); @@ -111,7 +111,7 @@ shared_ptr getComDevStream() { shared_ptr getDevPacketStream() { static shared_ptr stream{ - initHTML(fopen((cacheDirectory + "devpackets.html").c_str(), "wb"), "Dev Packets"), + initHTML(fopen((cacheDirectory + "/devpackets.html").c_str(), "wb"), "Dev Packets"), [](FILE* f) { clog << "Closing devPackets stream" << endl; closeHTML(f); @@ -125,7 +125,7 @@ shared_ptr getDevPacketStream() { } shared_ptr getDevAPDUStream() { - static shared_ptr stream{ initHTML(fopen((cacheDirectory + "devAPDU.html").c_str(), "wb"), + static shared_ptr stream{ initHTML(fopen((cacheDirectory + "/devAPDU.html").c_str(), "wb"), "Dev APDU"), [](FILE* f) { clog << "Closing dev APDU stream" << endl; diff --git a/_Architecture.hpp b/_Architecture.hpp index cf31db8..596d0df 100644 --- a/_Architecture.hpp +++ b/_Architecture.hpp @@ -33,7 +33,7 @@ along with this program. If not, see . # define STORAGE_PREFIX "/sdcard/U2F/" extern std::string hidDev; # define HID_DEV hidDev.c_str() -# define DEBUG_STREAMS "/sdcard/log/" +# define DEBUG_STREAMS "/sdcard/log" # define HID_SOCKET // #define DEBUG_MSGS #endif