/* Utility functions to manipulate boot mode and ecc modes (convert them back and forth between description strings and the corresponding numerical identifiers).  */
static const char* image_boot_mode_name(unsigned int id)
/* Utility functions to manipulate boot mode and ecc modes (convert them back and forth between description strings and the corresponding numerical identifiers).  */
static const char* image_boot_mode_name(unsigned int id)
{
	int i;
	for (i = 0; boot_modes[i].name; i++)
		if (boot_modes[i].id == id)
			return boot_modes[i].name;
	return NULL;
}