From 02d71245464989d2313a7211dfe9636debb150c2 Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Sun, 7 May 2006 23:57:24 +0000 Subject: Add a little debug to test BIOCINQ primitive. --- sbin/bioctl/bioctl.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sbin/bioctl/bioctl.c b/sbin/bioctl/bioctl.c index d3823771c54..5fd3a29b887 100644 --- a/sbin/bioctl/bioctl.c +++ b/sbin/bioctl/bioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bioctl.c,v 1.39 2005/08/23 23:20:23 deraadt Exp $ */ +/* $OpenBSD: bioctl.c,v 1.40 2006/05/07 23:57:23 marco Exp $ */ /* * Copyright (c) 2004, 2005 Marco Peereboom @@ -231,6 +231,13 @@ bio_inq(char *name) return; } + if (debug) + printf("bio_inq { %p, %s, %d, %d }\n", + bi.bi_cookie, + bi.bi_dev, + bi.bi_novol, + bi.bi_nodisk); + volheader = 0; for (i = 0; i < bi.bi_novol; i++) { memset(&bv, 0, sizeof(bv)); -- cgit v1.2.3