diff --git a/src/p7os/main.c b/src/p7os/main.c index 31c743a..c1e04dc 100644 --- a/src/p7os/main.c +++ b/src/p7os/main.c @@ -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);