File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
connectivity/FEATURE_BLE/source/generic Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -1210,15 +1210,23 @@ ble_error_t SecurityManager::init_database(
1210
1210
const char *db_path
1211
1211
)
1212
1212
{
1213
- tr_info (" Initialize database. Path = %s " , db_path );
1213
+ tr_info (" Initialize database." );
1214
1214
delete _db;
1215
1215
1216
1216
#if BLE_SECURITY_DATABASE_FILESYSTEM
1217
- FILE* db_file = FileSecurityDb::open_db_file (db_path);
1217
+ FILE* db_file = nullptr ;
1218
+ if (db_path) {
1219
+ tr_info (" Using filesystem path = %s" , db_path);
1220
+ db_file = FileSecurityDb::open_db_file (db_path);
1221
+ }
1218
1222
1219
1223
if (db_file) {
1220
1224
_db = new (std::nothrow) FileSecurityDb (db_file);
1221
1225
} else
1226
+ #else
1227
+ if (db_path) {
1228
+ tr_error (" Passed in a path for BLE security DB init but BLE_SECURITY_DATABASE_FILESYSTEM is disabled" );
1229
+ }
1222
1230
#endif
1223
1231
#if BLE_SECURITY_DATABASE_KVSTORE
1224
1232
if (KVStoreSecurityDb::open_db ()) {
You can’t perform that action at this time.
0 commit comments