aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/dumpcis/printcis.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2008-11-20 08:12:26 +0000
committerWarner Losh <imp@FreeBSD.org>2008-11-20 08:12:26 +0000
commit2d134dead2e4c5dcf635d619cf12c6919d944fb9 (patch)
tree71b88343964ce3cd095b5933b129304c964429af /usr.sbin/dumpcis/printcis.c
parent199493b9177aaa78273d175ddbe38e906ff8f7c5 (diff)
downloadsrc-2d134dead2e4c5dcf635d619cf12c6919d944fb9.tar.gz
src-2d134dead2e4c5dcf635d619cf12c6919d944fb9.zip
The original programs that this code was lifted from (pccardd and
pccardc) parsed data to make decisions about stuff related to card configuration. The purely CIS dumping aspect of this program obviates the need for such parsing. Save some space and don't parse the data anymore for configuration purposes. Just parse it to print an interpreatation of it.
Notes
Notes: svn path=/head/; revision=185121
Diffstat (limited to 'usr.sbin/dumpcis/printcis.c')
-rw-r--r--usr.sbin/dumpcis/printcis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/dumpcis/printcis.c b/usr.sbin/dumpcis/printcis.c
index 1bd526e1e702..4468f02cc245 100644
--- a/usr.sbin/dumpcis/printcis.c
+++ b/usr.sbin/dumpcis/printcis.c
@@ -62,7 +62,7 @@ static void dump_info_v2(u_char *p, int len);
static void dump_org(u_char *p, int len);
void
-dumpcis(struct cis *cp)
+dumpcis(struct tuple_list *tlist)
{
struct tuple *tp;
struct tuple_list *tl;
@@ -70,7 +70,7 @@ dumpcis(struct cis *cp)
u_char *p;
int func = 0;
- for (tl = cp->tlist; tl; tl = tl->next)
+ for (tl = tlist; tl; tl = tl->next)
for (tp = tl->tuples; tp; tp = tp->next) {
printf("Tuple #%d, code = 0x%x (%s), length = %d\n",
++count, tp->code, tuple_name(tp->code), tp->length);