Skip to content

Commit

Permalink
Tools: remove superfluous linefeed from panic strings
Browse files Browse the repository at this point in the history
panic adds this within the HAL layer.
  • Loading branch information
peterbarker committed Dec 13, 2024
1 parent fea17e6 commit b5ba096
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tools/CPUInfo/CPUInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,13 @@ static void test_div1000(void)
for (uint32_t i=0; i<2000000; i++) {
uint64_t v = 0;
if (!hal.util->get_random_vals((uint8_t*)&v, sizeof(v))) {
AP_HAL::panic("ERROR: div1000 no random\n");
AP_HAL::panic("ERROR: div1000 no random");
break;
}
uint64_t v1 = v / 1000ULL;
uint64_t v2 = uint64_div1000(v);
if (v1 != v2) {
AP_HAL::panic("ERROR: 0x%llx v1=0x%llx v2=0x%llx\n",
AP_HAL::panic("ERROR: 0x%llx v1=0x%llx v2=0x%llx",
(unsigned long long)v, (unsigned long long)v1, (unsigned long long)v2);
return;
}
Expand All @@ -228,15 +228,15 @@ static void test_div1000(void)
for (uint32_t i=0; i<2000000; i++) {
uint64_t v = 0;
if (!hal.util->get_random_vals((uint8_t*)&v, sizeof(v))) {
AP_HAL::panic("ERROR: div1000 no random\n");
AP_HAL::panic("ERROR: div1000 no random");
break;
}
chSysLock();
uint64_t v1 = v / 1000ULL;
uint64_t v2 = uint64_div1000(v);
chSysUnlock();
if (v1 != v2) {
AP_HAL::panic("ERROR: 0x%llx v1=0x%llx v2=0x%llx\n",
AP_HAL::panic("ERROR: 0x%llx v1=0x%llx v2=0x%llx",
(unsigned long long)v, (unsigned long long)v1, (unsigned long long)v2);
return;
}
Expand Down

0 comments on commit b5ba096

Please sign in to comment.