summaryrefslogtreecommitdiff
path: root/firmware/logf.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/logf.c')
-rw-r--r--firmware/logf.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/firmware/logf.c b/firmware/logf.c
index 054baa14ea..8821f4a658 100644
--- a/firmware/logf.c
+++ b/firmware/logf.c
@@ -97,15 +97,6 @@ static void displayremote(void)
97#define displayremote() 97#define displayremote()
98#endif 98#endif
99 99
100static void check_logfindex(void)
101{
102 if(logfindex >= MAX_LOGF_LINES) {
103 /* wrap */
104 logfwrap = true;
105 logfindex = 0;
106 }
107}
108
109#ifdef __PCTOOL__ 100#ifdef __PCTOOL__
110void _logf(const char *format, ...) 101void _logf(const char *format, ...)
111{ 102{
@@ -117,6 +108,15 @@ void _logf(const char *format, ...)
117 printf("DEBUG: %s\n", buf); 108 printf("DEBUG: %s\n", buf);
118} 109}
119#else 110#else
111static void check_logfindex(void)
112{
113 if(logfindex >= MAX_LOGF_LINES) {
114 /* wrap */
115 logfwrap = true;
116 logfindex = 0;
117 }
118}
119
120void _logf(const char *format, ...) 120void _logf(const char *format, ...)
121{ 121{
122 int len; 122 int len;