@@ -180,12 +180,12 @@ int _calculate_blocksize_match_tdbstore(BlockDevice *bd)
180180 bd_size_t number_of_sector = size / erase_size;
181181 bd_size_t number_of_page = size / page_size;
182182 if (number_of_sector < TDBStore::STORE_SECTORS) {
183- tr_warning (" KV Config: There are less than two sectors - TDBStore will not work." );
183+ tr_warning (" KV Config: There are less than %d sectors - TDBStore will not work." , TDBStore::STORE_SECTORS );
184184 return -1 ;
185185 }
186186
187187 if (number_of_page < TDBStore::STORE_PAGES) {
188- tr_warning (" KV Config: There are less than ten pages sectors - TDBStore will not work." );
188+ tr_warning (" KV Config: There are less than %d pages - TDBStore will not work." , TDBStore::STORE_PAGES );
189189 return -1 ;
190190 }
191191
@@ -581,9 +581,9 @@ int _create_internal_tdb(BlockDevice **internal_bd, KVStore **internal_tdb, bd_s
581581 return MBED_ERROR_FAILED_OPERATION ;
582582 }
583583
584- // Check if TDBStore has at least 2 sectors or 10 pages.
584+ // Check if TDBStore has at least 2 sectors or 14 pages.
585585 if (_calculate_blocksize_match_tdbstore (*internal_bd) != MBED_SUCCESS) {
586- tr_error (" KV Config: Can not create TDBStore with less then 2 sectors or 10 pages." );
586+ tr_error (" KV Config: Can not create TDBStore with less then %d sectors or %d pages." , TDBStore::STORE_SECTORS, TDBStore::STORE_PAGES );
587587 return MBED_ERROR_INVALID_ARGUMENT;
588588 }
589589
@@ -749,9 +749,9 @@ int _storage_config_tdb_external_common()
749749 return MBED_ERROR_FAILED_OPERATION ;
750750 }
751751
752- // Check that there is at least 2 sectors for the external TDBStore
752+ // Check that there is at least 2 sectors or 14 pages for the external TDBStore
753753 if (_calculate_blocksize_match_tdbstore (kvstore_config.external_bd ) != MBED_SUCCESS) {
754- tr_error (" KV Config: Can not create TDBStore with less then 2 sectors or 10 pages." );
754+ tr_error (" KV Config: Can not create TDBStore with less then 2 sectors or 14 pages." );
755755 return MBED_ERROR_INVALID_SIZE;
756756 }
757757
0 commit comments