Try an fix a couple of dev_t/major/minor etc nits.

This commit is contained in:
Peter Wemm 1999-05-12 22:30:50 +00:00
parent 25c4e179f5
commit ccb84588dd
3 changed files with 9 additions and 7 deletions

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94
* $Id: kern_shutdown.c,v 1.50 1999/05/07 10:10:53 phk Exp $
* $Id: kern_shutdown.c,v 1.51 1999/05/08 06:39:38 phk Exp $
*/
#include "opt_ddb.h"
@ -382,7 +382,8 @@ dumpsys(void)
if (!(bdevsw(dumpdev)->d_dump))
return;
dumpsize = Maxmem;
printf("\ndumping to dev %lx, offset %ld\n", (u_long)dumpdev, dumplo);
printf("\ndumping to dev (%d,%d), offset %ld\n",
major(dumpdev), minor(dumpdev), dumplo);
printf("dump ");
switch ((*bdevsw(dumpdev)->d_dump)(dumpdev)) {

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)subr_xxx.c 8.1 (Berkeley) 6/10/93
* $Id: subr_xxx.c,v 1.11 1998/08/20 06:10:40 bde Exp $
* $Id: subr_xxx.c,v 1.12 1998/11/08 12:39:02 dfr Exp $
*/
/*
@ -146,7 +146,7 @@ noreset(dev)
dev_t dev;
{
printf("noreset(0x%x) called\n", dev);
printf("noreset(%d,%d) called\n", major(dev), minor(dev));
return (ENODEV);
}

View File

@ -11,7 +11,7 @@
* 2. Absolutely no warranty of function or purpose is made by the author
* John S. Dyson.
*
* $Id: vfs_bio.c,v 1.209 1999/05/06 17:06:41 phk Exp $
* $Id: vfs_bio.c,v 1.210 1999/05/06 20:00:26 phk Exp $
*/
/*
@ -2960,10 +2960,11 @@ DB_SHOW_COMMAND(buffer, db_show_buffer)
db_printf("b_flags = 0x%b\n", (u_int)bp->b_flags, PRINT_BUF_FLAGS);
db_printf("b_error = %d, b_bufsize = %ld, b_bcount = %ld, "
"b_resid = %ld\nb_dev = 0x%x, b_data = %p, "
"b_resid = %ld\nb_dev = (%d,%d), b_data = %p, "
"b_blkno = %d, b_pblkno = %d\n",
bp->b_error, bp->b_bufsize, bp->b_bcount, bp->b_resid,
bp->b_dev, bp->b_data, bp->b_blkno, bp->b_pblkno);
major(bp->b_dev), minor(bp->b_dev),
bp->b_data, bp->b_blkno, bp->b_pblkno);
if (bp->b_npages) {
int i;
db_printf("b_npages = %d, pages(OBJ, IDX, PA): ", bp->b_npages);