diff options
author | Chris Lumens <clumens@redhat.com> | 2008-07-10 14:28:42 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2008-07-10 14:28:42 -0400 |
commit | 4cb8e6bec8eb3bab3f7ffb6b1fb68ea38524c992 (patch) | |
tree | 2b4095aad1880f5997c864090fab3a8d6ac977b7 | |
parent | 6d17943efa4b7db5f5265b1bd21ab7322a546e68 (diff) | |
download | anaconda-4cb8e6bec8eb3bab3f7ffb6b1fb68ea38524c992.tar.gz anaconda-4cb8e6bec8eb3bab3f7ffb6b1fb68ea38524c992.tar.xz anaconda-4cb8e6bec8eb3bab3f7ffb6b1fb68ea38524c992.zip |
Fix the mysterious Error: OK message.
-rw-r--r-- | loader2/cdinstall.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/loader2/cdinstall.c b/loader2/cdinstall.c index 8b69973c0..75d67fc41 100644 --- a/loader2/cdinstall.c +++ b/loader2/cdinstall.c @@ -133,18 +133,10 @@ static void mediaCheckCdrom(char *cddriver) { /* output an error message when CD in drive is not the correct one */ /* Used by mountCdromStage2() */ static void wrongCDMessage(void) { - char *buf = NULL; - - if (asprintf(&buf, (_("The %s disc was not found " - "in any of your drives. Please insert " - "the %s disc and press %s to retry."), - getProductName(), getProductName(), _("OK"))) == -1) { - logMessage(CRITICAL, "%s: %d: %m", __func__, __LINE__); - abort(); - } - - newtWinMessage(_("Error"), _("OK"), buf); - free(buf); + newtWinMessage(_("Error"), _("The %s disc was not found " + "in any of your drives. Please insert " + "the %s disc and press %s to retry."), + getProductName(), getProductName(), _("OK")); } /* ask about doing media check */ |