From c53386c4f4d7b386223960611bfeafdc8be0782f Mon Sep 17 00:00:00 2001 From: Michael Kuc Date: Sun, 12 Aug 2018 09:43:58 +0000 Subject: [PATCH] Moved temp log files. --- .gitignore | 7 ------- Streams.cpp | 12 ++++++------ 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index 40ae571..70eac42 100644 --- a/.gitignore +++ b/.gitignore @@ -1,12 +1,5 @@ -SOut.txt -comdev.txt -comhost.txt libuECC.o libcppb64.o U2FDevice obj/* U2F_Priv_Keys.txt -devAPDU.html -devpackets.html -hostAPDU.html -hostpackets.html diff --git a/Streams.cpp b/Streams.cpp index 06b6cde..07c62ed 100644 --- a/Streams.cpp +++ b/Streams.cpp @@ -28,7 +28,7 @@ shared_ptr getHostDescriptor() shared_ptr getComHostStream() { - static shared_ptr stream{ fopen("comhost.txt", "wb"), [](FILE *f){ + static shared_ptr stream{ fopen("/tmp/comhost.txt", "wb"), [](FILE *f){ clog << "Closing comhost stream" << endl; fclose(f); } }; @@ -41,7 +41,7 @@ shared_ptr getComHostStream() shared_ptr getHostPacketStream() { - static shared_ptr stream{ initHTML(fopen("hostpackets.html", "wb"), "Host Packets"), [](FILE *f){ + static shared_ptr stream{ initHTML(fopen("/tmp/hostpackets.html", "wb"), "Host Packets"), [](FILE *f){ clog << "Closing hostPackets stream" << endl; closeHTML(f); } }; @@ -54,7 +54,7 @@ shared_ptr getHostPacketStream() shared_ptr getHostAPDUStream() { - static shared_ptr stream{ initHTML(fopen("hostAPDU.html", "wb"), "Host APDU"), [](FILE *f){ + static shared_ptr stream{ initHTML(fopen("/tmp/hostAPDU.html", "wb"), "Host APDU"), [](FILE *f){ clog << "Closing host APDU stream" << endl; closeHTML(f); } }; @@ -67,7 +67,7 @@ shared_ptr getHostAPDUStream() shared_ptr getComDevStream() { - static shared_ptr stream{ fopen("comdev.txt", "wb"), [](FILE *f){ + static shared_ptr stream{ fopen("/tmp/comdev.txt", "wb"), [](FILE *f){ clog << "Closing comdev stream" << endl; fclose(f); } }; @@ -80,7 +80,7 @@ shared_ptr getComDevStream() shared_ptr getDevPacketStream() { - static shared_ptr stream{ initHTML(fopen("devpackets.html", "wb"), "Dev Packets"), [](FILE *f){ + static shared_ptr stream{ initHTML(fopen("/tmp/devpackets.html", "wb"), "Dev Packets"), [](FILE *f){ clog << "Closing devPackets stream" << endl; closeHTML(f); } }; @@ -93,7 +93,7 @@ shared_ptr getDevPacketStream() shared_ptr getDevAPDUStream() { - static shared_ptr stream{ initHTML(fopen("devAPDU.html", "wb"), "Dev APDU"), [](FILE *f){ + static shared_ptr stream{ initHTML(fopen("/tmp/devAPDU.html", "wb"), "Dev APDU"), [](FILE *f){ clog << "Closing dev APDU stream" << endl; closeHTML(f); } };