AP_DAL: factor substring from allocation_error parameter

This commit is contained in:
Peter Barker 2021-10-11 10:38:43 +11:00 committed by Andrew Tridgell
parent 60759f9a83
commit d6ebc5578b
2 changed files with 2 additions and 2 deletions

View File

@ -145,7 +145,7 @@ void AP_DAL::init_sensors(void)
#endif
if (alloc_failed) {
AP_BoardConfig::allocation_error("Unable to allocate DAL backends");
AP_BoardConfig::allocation_error("DAL backends");
}
}

View File

@ -27,7 +27,7 @@ AP_DAL_RangeFinder::AP_DAL_RangeFinder()
}
return;
failed:
AP_BoardConfig::allocation_error("Unable to allocate DAL backends");
AP_BoardConfig::allocation_error("DAL backends");
#endif
}