mirror of https://github.com/ArduPilot/ardupilot
Tools: remove superfluous linefeed from panic strings
panic adds this within the HAL layer.
This commit is contained in:
parent
fea17e6f59
commit
b5ba09664e
|
@ -212,13 +212,13 @@ static void test_div1000(void)
|
||||||
for (uint32_t i=0; i<2000000; i++) {
|
for (uint32_t i=0; i<2000000; i++) {
|
||||||
uint64_t v = 0;
|
uint64_t v = 0;
|
||||||
if (!hal.util->get_random_vals((uint8_t*)&v, sizeof(v))) {
|
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;
|
break;
|
||||||
}
|
}
|
||||||
uint64_t v1 = v / 1000ULL;
|
uint64_t v1 = v / 1000ULL;
|
||||||
uint64_t v2 = uint64_div1000(v);
|
uint64_t v2 = uint64_div1000(v);
|
||||||
if (v1 != v2) {
|
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);
|
(unsigned long long)v, (unsigned long long)v1, (unsigned long long)v2);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -228,7 +228,7 @@ static void test_div1000(void)
|
||||||
for (uint32_t i=0; i<2000000; i++) {
|
for (uint32_t i=0; i<2000000; i++) {
|
||||||
uint64_t v = 0;
|
uint64_t v = 0;
|
||||||
if (!hal.util->get_random_vals((uint8_t*)&v, sizeof(v))) {
|
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;
|
break;
|
||||||
}
|
}
|
||||||
chSysLock();
|
chSysLock();
|
||||||
|
@ -236,7 +236,7 @@ static void test_div1000(void)
|
||||||
uint64_t v2 = uint64_div1000(v);
|
uint64_t v2 = uint64_div1000(v);
|
||||||
chSysUnlock();
|
chSysUnlock();
|
||||||
if (v1 != v2) {
|
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);
|
(unsigned long long)v, (unsigned long long)v1, (unsigned long long)v2);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue