recovery: display mount point when confirming format

Change-Id: I474a511774b9e7ecf92f9fcedb1952d4c0adfdbc
This commit is contained in:
wjb 2011-04-30 21:04:04 -04:00
parent cde585e3de
commit cea6eba92d

View File

@ -549,6 +549,7 @@ void show_partition_menu()
static char* confirm_format = "Confirm format?";
static char* confirm = "Yes - Format";
char confirm_string[255];
for (;;)
{
@ -602,7 +603,9 @@ void show_partition_menu()
FormatMenuEntry* e = &format_menue[chosen_item];
Volume* v = e->v;
if (!confirm_selection(confirm_format, confirm))
sprintf(confirm_string, "%s - %s", v->mount_point, confirm_format);
if (!confirm_selection(confirm_string, confirm))
continue;
ui_print("Formatting %s...\n", v->mount_point);
if (0 != format_volume(v->mount_point))