diff options
Diffstat (limited to 'firmware/system.c')
-rw-r--r-- | firmware/system.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware/system.c b/firmware/system.c index 537e901b05..e2fdff0e59 100644 --- a/firmware/system.c +++ b/firmware/system.c | |||
@@ -89,6 +89,7 @@ char * cpu_boost_log_getlog_next(void) | |||
89 | 89 | ||
90 | void cpu_boost_(bool on_off, char* location, int line) | 90 | void cpu_boost_(bool on_off, char* location, int line) |
91 | { | 91 | { |
92 | int item = cpu_boost_calls_count; | ||
92 | if (!cpu_boost_lock()) | 93 | if (!cpu_boost_lock()) |
93 | return; | 94 | return; |
94 | 95 | ||
@@ -98,12 +99,13 @@ void cpu_boost_(bool on_off, char* location, int line) | |||
98 | cpu_boost_calls_count--; | 99 | cpu_boost_calls_count--; |
99 | if (cpu_boost_calls_count < 0) | 100 | if (cpu_boost_calls_count < 0) |
100 | cpu_boost_calls_count = 0; | 101 | cpu_boost_calls_count = 0; |
102 | item += cpu_boost_first; | ||
101 | } | 103 | } |
102 | if (cpu_boost_calls_count < MAX_BOOST_LOG) | 104 | if (cpu_boost_calls_count < MAX_BOOST_LOG) |
103 | { | 105 | { |
104 | int message = (cpu_boost_first+cpu_boost_calls_count)%MAX_BOOST_LOG; | 106 | int message = (cpu_boost_first+cpu_boost_calls_count)%MAX_BOOST_LOG; |
105 | snprintf(cpu_boost_calls[message], MAX_PATH, | 107 | snprintf(cpu_boost_calls[message], MAX_PATH,"%d.) %c %d %s:%d", |
106 | "%c %s:%d",on_off?'B':'U',location,line); | 108 | item,on_off?'B':'U',boost_counter,location,line); |
107 | cpu_boost_calls_count++; | 109 | cpu_boost_calls_count++; |
108 | } | 110 | } |
109 | #else | 111 | #else |