Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/utils/sysinst/arch Use msg_display(3) rather than pr...
details: https://anonhg.NetBSD.org/src/rev/d2e433f303ee
branches: trunk
changeset: 326742:d2e433f303ee
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Feb 15 19:45:43 2014 +0000
description:
Use msg_display(3) rather than printf(3) to print dobootblk messages.
The latter won't show any characters on the sysinst screen
and other ports have used the former.
diffstat:
distrib/utils/sysinst/arch/alpha/md.c | 4 ++--
distrib/utils/sysinst/arch/landisk/md.c | 4 ++--
distrib/utils/sysinst/arch/macppc/md.c | 4 ++--
distrib/utils/sysinst/arch/mipsco/md.c | 4 ++--
distrib/utils/sysinst/arch/news68k/md.c | 4 ++--
distrib/utils/sysinst/arch/newsmips/md.c | 4 ++--
distrib/utils/sysinst/arch/pmax/md.c | 4 ++--
distrib/utils/sysinst/arch/vax/md.c | 4 ++--
8 files changed, 16 insertions(+), 16 deletions(-)
diffs (144 lines):
diff -r 17614a2c952a -r d2e433f303ee distrib/utils/sysinst/arch/alpha/md.c
--- a/distrib/utils/sysinst/arch/alpha/md.c Sat Feb 15 19:42:10 2014 +0000
+++ b/distrib/utils/sysinst/arch/alpha/md.c Sat Feb 15 19:45:43 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.51 2011/11/04 11:27:01 martin Exp $ */
+/* $NetBSD: md.c,v 1.52 2014/02/15 19:45:43 tsutsui Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -151,7 +151,7 @@
char *bootxx;
int error;
- printf(msg_string(MSG_dobootblks), diskdev);
+ msg_display(MSG_dobootblks, diskdev);
cp_to_target("/usr/mdec/boot", "/boot");
bootxx = bootxx_name();
if (bootxx != NULL) {
diff -r 17614a2c952a -r d2e433f303ee distrib/utils/sysinst/arch/landisk/md.c
--- a/distrib/utils/sysinst/arch/landisk/md.c Sat Feb 15 19:42:10 2014 +0000
+++ b/distrib/utils/sysinst/arch/landisk/md.c Sat Feb 15 19:45:43 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.10 2011/11/04 11:27:03 martin Exp $ */
+/* $NetBSD: md.c,v 1.11 2014/02/15 19:45:43 tsutsui Exp $ */
/*
* Copyright 1997,2002 Piermont Information Systems Inc.
@@ -124,7 +124,7 @@
char *bootxx;
int error;
- printf (msg_string(MSG_dobootblks), diskdev);
+ msg_display(MSG_dobootblks, diskdev);
cp_to_target("/usr/mdec/boot", "/boot");
bootxx = bootxx_name();
if (bootxx != NULL) {
diff -r 17614a2c952a -r d2e433f303ee distrib/utils/sysinst/arch/macppc/md.c
--- a/distrib/utils/sysinst/arch/macppc/md.c Sat Feb 15 19:42:10 2014 +0000
+++ b/distrib/utils/sysinst/arch/macppc/md.c Sat Feb 15 19:45:43 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.45 2011/11/04 11:27:03 martin Exp $ */
+/* $NetBSD: md.c,v 1.46 2014/02/15 19:45:43 tsutsui Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -175,7 +175,7 @@
if (bsdlabel[PART_A].pi_offset != 0)
return 0;
- printf (msg_string(MSG_dobootblks), diskdev);
+ msg_display(MSG_dobootblks, diskdev);
cp_to_target("/usr/mdec/ofwboot", bootfile);
sync();
run_program(RUN_DISPLAY, "/usr/sbin/installboot /dev/r%sa %s %s",
diff -r 17614a2c952a -r d2e433f303ee distrib/utils/sysinst/arch/mipsco/md.c
--- a/distrib/utils/sysinst/arch/mipsco/md.c Sat Feb 15 19:42:10 2014 +0000
+++ b/distrib/utils/sysinst/arch/mipsco/md.c Sat Feb 15 19:45:43 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.20 2012/01/05 21:32:36 christos Exp $ */
+/* $NetBSD: md.c,v 1.21 2014/02/15 19:45:43 tsutsui Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -160,7 +160,7 @@
return 0;
}
- printf(msg_string(MSG_dobootblks), diskdev);
+ msg_display(MSG_dobootblks, diskdev);
cp_to_target("/usr/mdec/boot", "/boot");
if (run_program(RUN_DISPLAY | RUN_NO_CLEAR,
"/usr/mdec/installboot /dev/r%sc /usr/mdec/bootxx_ffs", diskdev))
diff -r 17614a2c952a -r d2e433f303ee distrib/utils/sysinst/arch/news68k/md.c
--- a/distrib/utils/sysinst/arch/news68k/md.c Sat Feb 15 19:42:10 2014 +0000
+++ b/distrib/utils/sysinst/arch/news68k/md.c Sat Feb 15 19:45:43 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.34 2011/11/04 11:27:04 martin Exp $ */
+/* $NetBSD: md.c,v 1.35 2014/02/15 19:45:43 tsutsui Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -155,7 +155,7 @@
{
const char *bootfile = "/boot";
- printf(msg_string(MSG_dobootblks), diskdev);
+ msg_display(MSG_dobootblks, diskdev);
cp_to_target("/usr/mdec/boot", bootfile);
sync();
run_program(RUN_DISPLAY, "/usr/sbin/installboot /dev/r%sc %s %s",
diff -r 17614a2c952a -r d2e433f303ee distrib/utils/sysinst/arch/newsmips/md.c
--- a/distrib/utils/sysinst/arch/newsmips/md.c Sat Feb 15 19:42:10 2014 +0000
+++ b/distrib/utils/sysinst/arch/newsmips/md.c Sat Feb 15 19:45:43 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.21 2011/11/04 11:27:04 martin Exp $ */
+/* $NetBSD: md.c,v 1.22 2014/02/15 19:45:43 tsutsui Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -150,7 +150,7 @@
{
const char *bootfile = "/boot";
- printf (msg_string(MSG_dobootblks), diskdev);
+ msg_display(MSG_dobootblks, diskdev);
cp_to_target("/usr/mdec/boot", bootfile);
sync();
run_program(RUN_DISPLAY, "/usr/sbin/installboot /dev/r%sc %s %s",
diff -r 17614a2c952a -r d2e433f303ee distrib/utils/sysinst/arch/pmax/md.c
--- a/distrib/utils/sysinst/arch/pmax/md.c Sat Feb 15 19:42:10 2014 +0000
+++ b/distrib/utils/sysinst/arch/pmax/md.c Sat Feb 15 19:45:43 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.67 2012/01/05 21:32:36 christos Exp $ */
+/* $NetBSD: md.c,v 1.68 2014/02/15 19:45:43 tsutsui Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -161,7 +161,7 @@
return 0;
}
- printf(msg_string(MSG_dobootblks), diskdev);
+ msg_display(MSG_dobootblks, diskdev);
cp_to_target("/usr/mdec/boot.pmax", "/boot.pmax");
bootxx = bootxx_name();
if (bootxx != NULL) {
diff -r 17614a2c952a -r d2e433f303ee distrib/utils/sysinst/arch/vax/md.c
--- a/distrib/utils/sysinst/arch/vax/md.c Sat Feb 15 19:42:10 2014 +0000
+++ b/distrib/utils/sysinst/arch/vax/md.c Sat Feb 15 19:45:43 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.39 2012/01/05 21:32:36 christos Exp $ */
+/* $NetBSD: md.c,v 1.40 2014/02/15 19:45:43 tsutsui Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -156,7 +156,7 @@
int
md_post_newfs(void)
{
- printf(msg_string(MSG_dobootblks), diskdev);
+ msg_display(MSG_dobootblks, diskdev);
run_program(0, "/usr/sbin/installboot /dev/r%s%c /usr/mdec/%.2sboot",
diskdev, 'a' + getrawpartition(), diskdev);
return 0;
Home |
Main Index |
Thread Index |
Old Index