summaryrefslogtreecommitdiff
path: root/sbin/atactl/atactl.c
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2004-02-19 21:22:08 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2004-02-19 21:22:08 +0000
commitd8e9badb65d542e8e27a37cd48807b8931dd8db1 (patch)
tree9de347d58b78a7be9134190ce9a827e4444b6365 /sbin/atactl/atactl.c
parent6c7ef7ba2a465c046eadfe578c719d158faf1b97 (diff)
Oops.
Diffstat (limited to 'sbin/atactl/atactl.c')
-rw-r--r--sbin/atactl/atactl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/atactl/atactl.c b/sbin/atactl/atactl.c
index d06b4879a85..7223145dcd6 100644
--- a/sbin/atactl/atactl.c
+++ b/sbin/atactl/atactl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: atactl.c,v 1.32 2004/02/19 21:17:41 grange Exp $ */
+/* $OpenBSD: atactl.c,v 1.33 2004/02/19 21:22:07 grange Exp $ */
/* $NetBSD: atactl.c,v 1.4 1999/02/24 18:49:14 jwise Exp $ */
/*-
@@ -475,7 +475,7 @@ device_dump(int argc, char *argv[])
int error;
atagettrace_t agt;
int total;
- int p;
+ int p = 0;
int type;
const char *types[] = { NULL, "status", "error", "ATAPI",
"ATAPI done", "ATA cmd", "ATA", "select slave",
@@ -644,7 +644,7 @@ device_dump(int argc, char *argv[])
printf("WRITE DMA");
break;
default:
- printf("CMD 0x%x");
+ printf("CMD 0x%x", buf[p + 6]);
}
printf(" head %d, precomp %d, cyl_hi %d, "
"cyl_lo %d, sec %d, cnt %d",
@@ -704,7 +704,7 @@ device_dump(int argc, char *argv[])
printf("WRITE DMA EXT");
break;
default:
- printf("CMD 0x%x");
+ printf("CMD 0x%x", buf[p + 8]);
}
printf(" lba_hi1 %d, lba_hi2 %d, "
"lba_mi1 %d, lba_mi2 %d, lba_lo1 %d, lba_lo2 %d, "