cake
/
p7utils
Archived
1
0
Fork 0

Just corrected the display message.

This commit is contained in:
Thomas Touhey 2017-02-09 13:46:16 +01:00
parent 447f766643
commit 9470df3386
1 changed files with 4 additions and 2 deletions

View File

@ -50,6 +50,7 @@ static const char error_unsupported[] =
*/
static int osdisp_init = 0;
static const char *osdisp_msg;
static void osdisp(p7ushort_t id, p7ushort_t total)
{
/* here's the buffer */
@ -63,6 +64,7 @@ static void osdisp(p7ushort_t id, p7ushort_t total)
/* if is initialize, fill */
if (id > total) {
pos = 0;
puts(osdisp_msg);
/* indicate that is has been initialized */
osdisp_init = 1;
/* put initial buffer */
@ -119,7 +121,7 @@ int main(int ac, char **av)
/* prepare */
if (!args.noprepare) {
/* make the preparation thing */
printf("Uploading the Update.Exe.\n");
osdisp_msg = "Uploading the Update.Exe.";
if ((err = prepare_ops(handle, args.uexe, osdisp)))
goto fail;
if (osdisp_init) {
@ -150,7 +152,7 @@ int main(int ac, char **av)
/* backup the thing menu */
case mn_get:
/* get the os */
printf("Gathering the OS...\n");
osdisp_msg = "Gathering the OS...";
err = p7_backup_romfile(handle, args.local, osdisp);
if (err) goto fail;
fclose(args.local);