chg: 'trace save' - now uses fileutils.c instead.

This commit is contained in:
iceman1001 2018-03-20 08:23:54 +01:00
commit b5545f4c35
3 changed files with 9 additions and 49 deletions

View file

@ -60,8 +60,7 @@ int fileExists(const char *filename) {
return result == 0;
}
int saveFile(const char *preferredName, const char *suffix, const void* data, size_t datalen)
{
int saveFile(const char *preferredName, const char *suffix, const void* data, size_t datalen) {
int size = sizeof(char) * (strlen(preferredName) + strlen(suffix) + 10);
char * fileName = malloc(size);
@ -147,8 +146,7 @@ out:
* write also to a logfile. When doing so, just delete this function.
* @param fmt
*/
void PrintAndLogDevice(logLevel_t level, char *fmt, ...)
{
void PrintAndLogDevice(logLevel_t level, char *fmt, ...) {
char buffer[2048] = {0};
va_list args;
va_start(args, fmt);
@ -157,8 +155,7 @@ void PrintAndLogDevice(logLevel_t level, char *fmt, ...)
PrintAndLogEx(level, buffer);
}
#else //if we're on ARM
void PrintAndLogDevice(logLevel_t level, char *fmt,...)
{
void PrintAndLogDevice(logLevel_t level, char *fmt, ...) {
return;
}