mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
chg: 'trace save' - now uses fileutils.c instead.
This commit is contained in:
parent
3d92a616b7
commit
b5545f4c35
3 changed files with 9 additions and 49 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue