-
-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixup logging correctly from a dumb mistake.
* Accidentally used the format data twice for file/line causing issues with logging * Hard code path to filename on USB stick. * Make filename a variable so that when settings work is done we will be able to reconfigure that one variable for use in path.
- Loading branch information
1 parent
8c1dc02
commit ad63a7f
Showing
2 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
#ifndef __LOG_H__ | ||
#define __LOG_H__ | ||
|
||
#define LogWrite(format, args...) _LogWrite("%s:%d:" format, __FILE__, __LINE__, ## args) | ||
#define LogWrite(format, args...) _LogWrite(__FILE__, __LINE__, format, ## args) | ||
|
||
void _LogWrite(const char *format, char *file, int line, ...); | ||
void _LogWrite(char *file, int line, const char *format, ...); | ||
|
||
#endif //__LOG_H__ |