Fix incorrect paths for debug files.
This commit is contained in:
12
Streams.cpp
12
Streams.cpp
@@ -54,7 +54,7 @@ shared_ptr<int> getHostDescriptor() {
|
||||
#ifdef DEBUG_STREAMS
|
||||
|
||||
shared_ptr<FILE> getComHostStream() {
|
||||
static shared_ptr<FILE> stream{ fopen((cacheDirectory + "comhost.txt").c_str(), "wb"),
|
||||
static shared_ptr<FILE> stream{ fopen((cacheDirectory + "/comhost.txt").c_str(), "wb"),
|
||||
[](FILE* f) {
|
||||
clog << "Closing comhost stream" << endl;
|
||||
fclose(f);
|
||||
@@ -68,7 +68,7 @@ shared_ptr<FILE> getComHostStream() {
|
||||
|
||||
shared_ptr<FILE> getHostPacketStream() {
|
||||
static shared_ptr<FILE> 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<FILE> getHostPacketStream() {
|
||||
|
||||
shared_ptr<FILE> getHostAPDUStream() {
|
||||
static shared_ptr<FILE> 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<FILE> getHostAPDUStream() {
|
||||
}
|
||||
|
||||
shared_ptr<FILE> getComDevStream() {
|
||||
static shared_ptr<FILE> stream{ fopen((cacheDirectory + "comdev.txt").c_str(), "wb"),
|
||||
static shared_ptr<FILE> stream{ fopen((cacheDirectory + "/comdev.txt").c_str(), "wb"),
|
||||
[](FILE* f) {
|
||||
clog << "Closing comdev stream" << endl;
|
||||
fclose(f);
|
||||
@@ -111,7 +111,7 @@ shared_ptr<FILE> getComDevStream() {
|
||||
|
||||
shared_ptr<FILE> getDevPacketStream() {
|
||||
static shared_ptr<FILE> 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<FILE> getDevPacketStream() {
|
||||
}
|
||||
|
||||
shared_ptr<FILE> getDevAPDUStream() {
|
||||
static shared_ptr<FILE> stream{ initHTML(fopen((cacheDirectory + "devAPDU.html").c_str(), "wb"),
|
||||
static shared_ptr<FILE> stream{ initHTML(fopen((cacheDirectory + "/devAPDU.html").c_str(), "wb"),
|
||||
"Dev APDU"),
|
||||
[](FILE* f) {
|
||||
clog << "Closing dev APDU stream" << endl;
|
||||
|
||||
Reference in New Issue
Block a user