Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/installboot/arch display sector start & count in de...



details:   https://anonhg.NetBSD.org/src/rev/7439a5939a52
branches:  trunk
changeset: 526290:7439a5939a52
user:      lukem <lukem%NetBSD.org@localhost>
date:      Tue Apr 30 14:24:33 2002 +0000

description:
display sector start & count in decimal rather than hex

diffstat:

 usr.sbin/installboot/arch/alpha.c   |  16 ++++++++--------
 usr.sbin/installboot/arch/pmax.c    |   8 ++++----
 usr.sbin/installboot/arch/sparc64.c |   8 ++++----
 usr.sbin/installboot/arch/sun68k.c  |   8 ++++----
 usr.sbin/installboot/arch/vax.c     |   8 ++++----
 5 files changed, 24 insertions(+), 24 deletions(-)

diffs (171 lines):

diff -r f922e8020750 -r 7439a5939a52 usr.sbin/installboot/arch/alpha.c
--- a/usr.sbin/installboot/arch/alpha.c Tue Apr 30 14:21:17 2002 +0000
+++ b/usr.sbin/installboot/arch/alpha.c Tue Apr 30 14:24:33 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: alpha.c,v 1.7 2002/04/25 18:11:53 tv Exp $     */
+/*     $NetBSD: alpha.c,v 1.8 2002/04/30 14:24:33 lukem Exp $  */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -98,7 +98,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(__lint)
-__RCSID("$NetBSD: alpha.c,v 1.7 2002/04/25 18:11:53 tv Exp $");
+__RCSID("$NetBSD: alpha.c,v 1.8 2002/04/30 14:24:33 lukem Exp $");
 #endif /* !__lint */
 
 #if HAVE_CONFIG_H
@@ -180,9 +180,9 @@
        }
 
        if (params->flags & IB_VERBOSE) {
-               printf("Old bootstrap start sector: %#llx\n",
+               printf("Old bootstrap start sector: %llu\n",
                    (unsigned long long)le64toh(bb.bb_secstart));
-               printf("Old bootstrap size:         %#llx\n",
+               printf("Old bootstrap size:         %llu\n",
                    (unsigned long long)le64toh(bb.bb_secsize));
                printf("Old bootstrap checksum:     %#llx\n",
                    (unsigned long long)bb.bb_cksum);
@@ -194,9 +194,9 @@
        if (params->flags & IB_SUNSUM)
                sun_bootstrap(params, &bb);
 
-       printf("New bootstrap start sector: %#llx\n",
+       printf("New bootstrap start sector: %llu\n",
            (unsigned long long)le64toh(bb.bb_secstart));
-       printf("New bootstrap size:         %#llx\n",
+       printf("New bootstrap size:         %llu\n",
            (unsigned long long)le64toh(bb.bb_secsize));
        printf("New bootstrap checksum:     %#llx\n",
            (unsigned long long)bb.bb_cksum);
@@ -324,9 +324,9 @@
                sun_bootstrap(params, &bb);
 
        if (params->flags & IB_VERBOSE) {
-               printf("Bootstrap start sector:  %#llx\n",
+               printf("Bootstrap start sector:  %llu\n",
                    (unsigned long long)startblock);
-               printf("Bootstrap sector count:  %#llx\n",
+               printf("Bootstrap sector count:  %llu\n",
                    (unsigned long long)le64toh(bb.bb_secsize));
                printf("New boot block checksum: %#llx\n",
                    (unsigned long long)bb.bb_cksum);
diff -r f922e8020750 -r 7439a5939a52 usr.sbin/installboot/arch/pmax.c
--- a/usr.sbin/installboot/arch/pmax.c  Tue Apr 30 14:21:17 2002 +0000
+++ b/usr.sbin/installboot/arch/pmax.c  Tue Apr 30 14:24:33 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmax.c,v 1.5 2002/04/25 18:11:54 tv Exp $      */
+/*     $NetBSD: pmax.c,v 1.6 2002/04/30 14:24:33 lukem Exp $   */
 
 /*-
  * Copyright (c) 1999, 2002 The NetBSD Foundation, Inc.
@@ -101,7 +101,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(__lint)
-__RCSID("$NetBSD: pmax.c,v 1.5 2002/04/25 18:11:54 tv Exp $");
+__RCSID("$NetBSD: pmax.c,v 1.6 2002/04/30 14:24:33 lukem Exp $");
 #endif /* !__lint */
 
 #if HAVE_CONFIG_H
@@ -291,9 +291,9 @@
        }
 
        if (params->flags & IB_VERBOSE) {
-               printf("Bootstrap start sector: %#x\n",
+               printf("Bootstrap start sector: %u\n",
                    le32toh(bb.map[0].start_block));
-               printf("Bootstrap sector count: %#x\n",
+               printf("Bootstrap sector count: %u\n",
                    le32toh(bb.map[0].num_blocks));
                printf("Bootstrap load address: %#x\n",
                    le32toh(bb.load_addr));
diff -r f922e8020750 -r 7439a5939a52 usr.sbin/installboot/arch/sparc64.c
--- a/usr.sbin/installboot/arch/sparc64.c       Tue Apr 30 14:21:17 2002 +0000
+++ b/usr.sbin/installboot/arch/sparc64.c       Tue Apr 30 14:24:33 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sparc64.c,v 1.9 2002/04/22 16:03:07 lukem Exp $        */
+/*     $NetBSD: sparc64.c,v 1.10 2002/04/30 14:24:33 lukem Exp $       */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(__lint)
-__RCSID("$NetBSD: sparc64.c,v 1.9 2002/04/22 16:03:07 lukem Exp $");
+__RCSID("$NetBSD: sparc64.c,v 1.10 2002/04/30 14:24:33 lukem Exp $");
 #endif /* !__lint */
 
 #include <sys/param.h>
@@ -171,8 +171,8 @@
                    SPARC64_BOOT_BLOCK_BLOCKSIZE;
 
        if (params->flags & IB_VERBOSE) {
-               printf("Bootstrap start sector: %#x\n", startblock);
-               printf("Bootstrap byte count:   %#x\n", (unsigned)rv);
+               printf("Bootstrap start sector: %u\n", startblock);
+               printf("Bootstrap byte count:   %u\n", (unsigned)rv);
                printf("%sriting bootstrap\n",
                    (params->flags & IB_NOWRITE) ? "Not w" : "W");
        }
diff -r f922e8020750 -r 7439a5939a52 usr.sbin/installboot/arch/sun68k.c
--- a/usr.sbin/installboot/arch/sun68k.c        Tue Apr 30 14:21:17 2002 +0000
+++ b/usr.sbin/installboot/arch/sun68k.c        Tue Apr 30 14:24:33 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sun68k.c,v 1.6 2002/04/29 13:07:41 lukem Exp $ */
+/*     $NetBSD: sun68k.c,v 1.7 2002/04/30 14:24:33 lukem Exp $ */
 
 /*-
  * Copyright (c) 1998, 2002 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(__lint)
-__RCSID("$NetBSD: sun68k.c,v 1.6 2002/04/29 13:07:41 lukem Exp $");
+__RCSID("$NetBSD: sun68k.c,v 1.7 2002/04/30 14:24:33 lukem Exp $");
 #endif /* !__lint */
 
 #if HAVE_CONFIG_H
@@ -224,8 +224,8 @@
                    SUN68K_BOOT_BLOCK_BLOCKSIZE;
 
        if (params->flags & IB_VERBOSE) {
-               printf("Bootstrap start sector: %#x\n", startblock);
-               printf("Bootstrap byte count:   %#x\n", (unsigned)rv);
+               printf("Bootstrap start sector: %u\n", startblock);
+               printf("Bootstrap byte count:   %u\n", (unsigned)rv);
                printf("Bootstrap block table:  %u entries avail, %u used:",
                    maxblk, nblk);
                for (blk_i = 0; blk_i < nblk; blk_i++)
diff -r f922e8020750 -r 7439a5939a52 usr.sbin/installboot/arch/vax.c
--- a/usr.sbin/installboot/arch/vax.c   Tue Apr 30 14:21:17 2002 +0000
+++ b/usr.sbin/installboot/arch/vax.c   Tue Apr 30 14:24:33 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vax.c,v 1.4 2002/04/25 18:11:54 tv Exp $       */
+/*     $NetBSD: vax.c,v 1.5 2002/04/30 14:24:33 lukem Exp $    */
 
 /*-
  * Copyright (c) 1999, 2002 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(__lint)
-__RCSID("$NetBSD: vax.c,v 1.4 2002/04/25 18:11:54 tv Exp $");
+__RCSID("$NetBSD: vax.c,v 1.5 2002/04/30 14:24:33 lukem Exp $");
 #endif /* !__lint */
 
 #if HAVE_CONFIG_H
@@ -276,8 +276,8 @@
        }
 
        if (params->flags & IB_VERBOSE) {
-               printf("Bootstrap start sector: %#x\n", startblock);
-               printf("Bootstrap sector count: %#x\n", le32toh(bb.bb_size));
+               printf("Bootstrap start sector: %u\n", startblock);
+               printf("Bootstrap sector count: %u\n", le32toh(bb.bb_size));
                printf("%sriting bootstrap\n",
                    (params->flags & IB_NOWRITE) ? "Not w" : "W");
        }



Home | Main Index | Thread Index | Old Index