From 9470df33863d13f90c837c4586fa331fb5217980 Mon Sep 17 00:00:00 2001 From: "Thomas \"Cakeisalie5\" Touhey" Date: Thu, 9 Feb 2017 13:46:16 +0100 Subject: [PATCH] Just corrected the display message. --- src/p7os/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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);