Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/alpha/stand/bootxx puts -> putstr



details:   https://anonhg.NetBSD.org/src/rev/ca427504cc27
branches:  trunk
changeset: 471474:ca427504cc27
user:      cgd <cgd%NetBSD.org@localhost>
date:      Fri Apr 02 03:35:54 1999 +0000

description:
puts -> putstr

diffstat:

 sys/arch/alpha/stand/bootxx/Makefile |   4 ++--
 sys/arch/alpha/stand/bootxx/bootxx.c |  28 +++++++++++++---------------
 sys/arch/alpha/stand/bootxx/puts.c   |  14 --------------
 3 files changed, 15 insertions(+), 31 deletions(-)

diffs (133 lines):

diff -r 4dd8a5039ebd -r ca427504cc27 sys/arch/alpha/stand/bootxx/Makefile
--- a/sys/arch/alpha/stand/bootxx/Makefile      Fri Apr 02 03:34:09 1999 +0000
+++ b/sys/arch/alpha/stand/bootxx/Makefile      Fri Apr 02 03:35:54 1999 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.20 1999/04/02 03:20:00 cgd Exp $
+# $NetBSD: Makefile,v 1.21 1999/04/02 03:35:54 cgd Exp $
 
 PROG = bootxx
 
-SRCS = start.S bootxx.c prom.c prom_disp.S puts.c booted_dev.c
+SRCS = start.S bootxx.c prom.c prom_disp.S putstr.c booted_dev.c
 
 BOOT_RELOC = ${PRIMARY_LOAD_ADDRESS}
 PRIMARY_MAX_LOAD!=     expr 8192 - 512
diff -r 4dd8a5039ebd -r ca427504cc27 sys/arch/alpha/stand/bootxx/bootxx.c
--- a/sys/arch/alpha/stand/bootxx/bootxx.c      Fri Apr 02 03:34:09 1999 +0000
+++ b/sys/arch/alpha/stand/bootxx/bootxx.c      Fri Apr 02 03:35:54 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bootxx.c,v 1.12 1999/04/02 03:19:08 cgd Exp $ */
+/* $NetBSD: bootxx.c,v 1.13 1999/04/02 03:35:55 cgd Exp $ */
 
 /*
  * Copyright (C) 1998 by Ross Harvey
@@ -47,8 +47,6 @@
 
 extern int _end, start;
 
-extern void puts __P((const char *)); /* XXX private, does not append '\n' */
-
 struct bbinfoloc desc = {
        0xbabefacedeadbeef,
        (u_int64_t)&start,
@@ -63,7 +61,7 @@
 {
        int     i, c;
 
-       puts(msg);
+       putstr(msg);
        for(i=60; i >= 0; i -= 4) {
                c = val >> i & 0xf;
                if (c >= 10)
@@ -87,11 +85,11 @@
        int i, j, n, rv, nextblk, wantblk, blksize;
 
        if (bbinfop->nblocks <= 0) {
-               puts("invalid number of blocks in boot program description\n");
+               putstr("invalid number of blocks in boot program description\n");
                return 0;
        }
        if (bbinfop->bsize < DEV_BSIZE || bbinfop->bsize > MAXBSIZE) {
-               puts("invalid block size in boot program description\n");
+               putstr("invalid block size in boot program description\n");
                return 0;
        }
 
@@ -100,14 +98,14 @@
            (sizeof(*bbinfop) / sizeof(bbinfop->blocks[0])) - 1;
        if ((long)&_end - (long)&start + sizeof(bbinfop->blocks[0]) * n >
            15 * 512) {
-               puts("way too many blocks\n");
+               putstr("way too many blocks\n");
                return 0;
        }
 
        for (i = 0, cksum = 0; i < n; i++)
                cksum += *int32p++;
        if (cksum != 0) {
-               puts("invalid checksum in boot program description\n");
+               putstr("invalid checksum in boot program description\n");
                return 0;
        }
 
@@ -132,11 +130,11 @@
                cp      += blksize;
                if (ret.u.status) {
                        rv = 0;
-                       puts("\nBLOCK READ ERROR!\n");
+                       putstr("\nBLOCK READ ERROR!\n");
                        break;
                }
        }
-       puts(".\n");
+       putstr(".\n");
 
        return (rv);
 }
@@ -159,23 +157,23 @@
        /* Init prom callback vector. */
        init_prom_calls();
 
-       puts("\nNetBSD/Alpha " NETBSD_VERS " Primary Boot +\n");
+       putstr("\nNetBSD/Alpha " NETBSD_VERS " Primary Boot +\n");
 
        bbinfop = (struct bbinfo *)&_end;
        loadaddr = (char *)SECONDARY_LOAD_ADDRESS;
 
        if (!booted_dev_open()) {
-               puts("Can't open boot device\n");
+               putstr("Can't open boot device\n");
                return;
        }
        if (!load_file(fd, bbinfop, loadaddr)) {
-               puts("\nLOAD FAILED!\n\n");
+               putstr("\nLOAD FAILED!\n\n");
                return;
        }
 
-       puts("Jumping to entry point...\n");
+       putstr("Jumping to entry point...\n");
        entry = (void (*)(int))loadaddr;
        (*entry)(fd);
        prom_close(fd);
-       puts("SECONDARY BOOT RETURNED!\n");
+       putstr("SECONDARY BOOT RETURNED!\n");
 }
diff -r 4dd8a5039ebd -r ca427504cc27 sys/arch/alpha/stand/bootxx/puts.c
--- a/sys/arch/alpha/stand/bootxx/puts.c        Fri Apr 02 03:34:09 1999 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-/*     $NetBSD: puts.c,v 1.4 1998/10/15 00:56:56 ross Exp $    */
-
-#include <lib/libsa/stand.h>
-
-/* XXX non-standard */
-
-void
-puts(s)
-       const char *s;
-{
-
-       while (*s)
-               putchar(*s++);
-}



Home | Main Index | Thread Index | Old Index