Adjust thread index type to uint16 for future expansion & Organize stellar directory files
This commit is contained in:
@@ -122,7 +122,7 @@ static int parse_packet_io_section(toml_table_t *root, struct packet_io_options
|
||||
CONFIG_LOG_ERROR("config file missing packet_io->cpu_mask");
|
||||
return -1;
|
||||
}
|
||||
for (uint8_t i = 0; i < opts->nr_threads; i++)
|
||||
for (uint16_t i = 0; i < opts->nr_threads; i++)
|
||||
{
|
||||
ptr = toml_raw_at(mask_array, i);
|
||||
if (ptr == NULL)
|
||||
@@ -489,7 +489,7 @@ void stellar_print_config(struct stellar_config *config)
|
||||
CONFIG_LOG_DEBUG("packet_io->dev_symbol : %s", io_opts->dev_symbol);
|
||||
}
|
||||
CONFIG_LOG_DEBUG("packet_io->nr_threads : %d", io_opts->nr_threads);
|
||||
for (uint8_t i = 0; i < io_opts->nr_threads; i++)
|
||||
for (uint16_t i = 0; i < io_opts->nr_threads; i++)
|
||||
{
|
||||
CONFIG_LOG_DEBUG("packet_io->cpu_mask[%03d] : %d", i, io_opts->cpu_mask[i]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user