@@ -158,7 +158,7 @@ void KVStoreSecurityDb::set_entry_local_ltk(
158
158
SecurityEntryKeys_t* current_entry = read_in_entry_local_keys (db_handle);
159
159
current_entry->ltk = ltk;
160
160
161
- tr_info (" Write DB entry %d: local ltk %s" , get_index (db_handle ), to_string (ltk));
161
+ tr_info (" Write DB entry %d: local ltk %s" , get_index (entry ), to_string (ltk));
162
162
db_write_entry (current_entry, DB_ENTRY_LOCAL_KEYS, get_index (entry));
163
163
}
164
164
@@ -177,7 +177,7 @@ void KVStoreSecurityDb::set_entry_local_ediv_rand(
177
177
current_entry->ediv = ediv;
178
178
current_entry->rand = rand;
179
179
180
- tr_info (" Write DB entry %d: local ediv %s rand %s" , get_index (db_handle ), to_string (ediv), to_string (rand));
180
+ tr_info (" Write DB entry %d: local ediv %s rand %s" , get_index (entry ), to_string (ediv), to_string (rand));
181
181
db_write_entry (current_entry, DB_ENTRY_LOCAL_KEYS, get_index (entry));
182
182
}
183
183
@@ -200,7 +200,7 @@ void KVStoreSecurityDb::set_entry_peer_ltk(
200
200
SecurityEntryKeys_t* current_entry = read_in_entry_peer_keys (db_handle);
201
201
current_entry->ltk = ltk;
202
202
203
- tr_info (" Write DB entry %d: peer ltk %s" , get_index (db_handle ), to_string (ltk));
203
+ tr_info (" Write DB entry %d: peer ltk %s" , get_index (entry ), to_string (ltk));
204
204
db_write_entry (current_entry, DB_ENTRY_PEER_KEYS, get_index (entry));
205
205
}
206
206
@@ -219,7 +219,7 @@ void KVStoreSecurityDb::set_entry_peer_ediv_rand(
219
219
current_entry->ediv = ediv;
220
220
current_entry->rand = rand;
221
221
222
- tr_info (" Write DB entry %d: peer ediv %s rand %s" , get_index (db_handle ), to_string (ediv), to_string (rand));
222
+ tr_info (" Write DB entry %d: peer ediv %s rand %s" , get_index (entry ), to_string (ediv), to_string (rand));
223
223
db_write_entry (current_entry, DB_ENTRY_PEER_KEYS, get_index (entry));
224
224
}
225
225
@@ -238,7 +238,7 @@ void KVStoreSecurityDb::set_entry_peer_irk(
238
238
SecurityEntryIdentity_t* current_entry = read_in_entry_peer_identity (db_handle);
239
239
current_entry->irk = irk;
240
240
241
- tr_info (" Write DB entry %d: peer irk %s" , get_index (db_handle ), to_string (irk));
241
+ tr_info (" Write DB entry %d: peer irk %s" , get_index (entry ), to_string (irk));
242
242
db_write_entry (current_entry, DB_ENTRY_PEER_IDENTITY, get_index (entry));
243
243
}
244
244
@@ -257,7 +257,7 @@ void KVStoreSecurityDb::set_entry_peer_bdaddr(
257
257
current_entry->identity_address = peer_address;
258
258
current_entry->identity_address_is_public = address_is_public;
259
259
260
- tr_info (" Write DB entry %d: %s peer address %s" , get_index (db_handle ), address_is_public? " public" : " private" , to_string (peer_address));
260
+ tr_info (" Write DB entry %d: %s peer address %s" , get_index (entry ), address_is_public? " public" : " private" , to_string (peer_address));
261
261
db_write_entry (current_entry, DB_ENTRY_PEER_IDENTITY, get_index (entry));
262
262
}
263
263
@@ -276,7 +276,7 @@ void KVStoreSecurityDb::set_entry_peer_csrk(
276
276
SecurityEntrySigning_t* current_entry = read_in_entry_peer_signing (db_handle);
277
277
current_entry->csrk = csrk;
278
278
279
- tr_info (" Write DB entry %d: peer csrk %s" , get_index (db_handle ), to_string (csrk));
279
+ tr_info (" Write DB entry %d: peer csrk %s" , get_index (entry ), to_string (csrk));
280
280
db_write_entry (current_entry, DB_ENTRY_PEER_SIGNING, get_index (entry));
281
281
}
282
282
0 commit comments