diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2006-05-07 23:57:24 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2006-05-07 23:57:24 +0000 |
commit | 02d71245464989d2313a7211dfe9636debb150c2 (patch) | |
tree | cb2b7859fddf5d76706067a527d132fc7763f679 | |
parent | 78109a53c2792421e2abc3239f814e9735943ac9 (diff) |
Add a little debug to test BIOCINQ primitive.
-rw-r--r-- | sbin/bioctl/bioctl.c | 9 |
1 files changed, 8 insertions, 1 deletions
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)); |