Loading libacc/acc.cpp +8 −1 Original line number Diff line number Diff line Loading @@ -61,11 +61,13 @@ // Uncomment to save input to a text file in DEBUG_DUMP_PATTERN // #define DEBUG_SAVE_INPUT_TO_FILE #ifdef DEBUG_SAVE_INPUT_TO_FILE #ifdef ARM_USE_VFP #define DEBUG_DUMP_PATTERN "/sdcard/acc_dump/%d.c" #define DEBUG_DUMP_PATTERN "/data/misc/acc_dump/%d.c" #else #define DEBUG_DUMP_PATTERN "/tmp/acc_dump/%d.c" #endif #endif #define assert(b) assertImpl(b, __LINE__) Loading Loading @@ -5924,6 +5926,7 @@ void accScriptSource(ACCscript* script, text[totalLength] = '\0'; #ifdef DEBUG_SAVE_INPUT_TO_FILE LOGD("Saving input to file..."); int counter; char path[PATH_MAX]; for (counter = 0; counter < 4096; counter++) { Loading @@ -5933,10 +5936,14 @@ void accScriptSource(ACCscript* script, } } if (counter < 4096) { LOGD("Saving input to file %s", path); FILE* fd = fopen(path, "w"); if (fd) { fwrite(text, totalLength, 1, fd); fclose(fd); LOGD("Saved input to file %s", path); } else { LOGD("Could not save. errno: %d", errno); } } #endif Loading Loading
libacc/acc.cpp +8 −1 Original line number Diff line number Diff line Loading @@ -61,11 +61,13 @@ // Uncomment to save input to a text file in DEBUG_DUMP_PATTERN // #define DEBUG_SAVE_INPUT_TO_FILE #ifdef DEBUG_SAVE_INPUT_TO_FILE #ifdef ARM_USE_VFP #define DEBUG_DUMP_PATTERN "/sdcard/acc_dump/%d.c" #define DEBUG_DUMP_PATTERN "/data/misc/acc_dump/%d.c" #else #define DEBUG_DUMP_PATTERN "/tmp/acc_dump/%d.c" #endif #endif #define assert(b) assertImpl(b, __LINE__) Loading Loading @@ -5924,6 +5926,7 @@ void accScriptSource(ACCscript* script, text[totalLength] = '\0'; #ifdef DEBUG_SAVE_INPUT_TO_FILE LOGD("Saving input to file..."); int counter; char path[PATH_MAX]; for (counter = 0; counter < 4096; counter++) { Loading @@ -5933,10 +5936,14 @@ void accScriptSource(ACCscript* script, } } if (counter < 4096) { LOGD("Saving input to file %s", path); FILE* fd = fopen(path, "w"); if (fd) { fwrite(text, totalLength, 1, fd); fclose(fd); LOGD("Saved input to file %s", path); } else { LOGD("Could not save. errno: %d", errno); } } #endif Loading