summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2005-08-18 16:01:30 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2005-08-18 16:01:30 +0000
commitbfcd1db83e474a2e67b94791fcbb746b6c872b1b (patch)
treeabd9ce3a9454a949a5dfea0db91f4f41d87282a7 /sys
parentba8d173f02a60ffdbc09547e4a106989a036d8de (diff)
on debug, print the tuple number along with the name to help debugging in
case of reserved tuples and pad to 0 the byte number. deraadt@ ok.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/cardbus/cardbus.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/cardbus/cardbus.c b/sys/dev/cardbus/cardbus.c
index 4adfdb3a012..b572aaada83 100644
--- a/sys/dev/cardbus/cardbus.c
+++ b/sys/dev/cardbus/cardbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cardbus.c,v 1.21 2005/08/02 21:49:46 pascoe Exp $ */
+/* $OpenBSD: cardbus.c,v 1.22 2005/08/18 16:01:29 fgsch Exp $ */
/* $NetBSD: cardbus.c,v 1.24 2000/04/02 19:11:37 mycroft Exp $ */
/*
@@ -968,11 +968,11 @@ print_tuple(tuple, len, data)
{
int i;
- printf("tuple: %s len %d\n", tuple_name(tuple[0]), len);
+ printf("tuple: %s/%d len %d\n", tuple_name(tuple[0]), tuple[0], len);
for (i = 0; i < len; ++i) {
if (i % 16 == 0) {
- printf(" 0x%2x:", i);
+ printf(" 0x%02x:", i);
}
printf(" %x",tuple[i]);
if (i % 16 == 15) {