display sector start & count in decimal rather than hex

This commit is contained in:
lukem 2002-04-30 14:24:33 +00:00
parent 1a478e4092
commit d9e55fca47
5 changed files with 24 additions and 24 deletions

View File

@ -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 @@ alpha_clearboot(ib_params *params)
}
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 @@ alpha_clearboot(ib_params *params)
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 @@ alpha_setboot(ib_params *params)
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);

View File

@ -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 @@ pmax_setboot(ib_params *params)
}
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));

View File

@ -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_setboot(ib_params *params)
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");
}

View File

@ -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_setboot(ib_params *params)
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++)

View File

@ -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 @@ vax_setboot(ib_params *params)
}
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");
}