diff options
author | Justin T. Gibbs <gibbs@FreeBSD.org> | 2005-02-16 23:13:38 +0000 |
---|---|---|
committer | Justin T. Gibbs <gibbs@FreeBSD.org> | 2005-02-16 23:13:38 +0000 |
commit | cb29ab3392d6f26bdf0eb6605a2e93ada7607784 (patch) | |
tree | ac7ec664647a6f28d28481d02f1bb609f5a26810 /sys/dev/aic7xxx/aic7xxx.c | |
parent | 07b9f1becdb5cf163706681a8217b097b402b9dc (diff) | |
download | src-cb29ab3392d6f26bdf0eb6605a2e93ada7607784.tar.gz src-cb29ab3392d6f26bdf0eb6605a2e93ada7607784.zip |
aic79xx.c:
aic7xxx.c:
Allow print_reg() to be called with a NULL column.
aic79xx.c:
Correct new usage of SCB_GET_TAG().
aic7xxx.c:
Fix stray ahd that snuck in here.
Notes
Notes:
svn path=/head/; revision=141999
Diffstat (limited to 'sys/dev/aic7xxx/aic7xxx.c')
-rw-r--r-- | sys/dev/aic7xxx/aic7xxx.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/aic7xxx/aic7xxx.c b/sys/dev/aic7xxx/aic7xxx.c index 296e3627fb4b..a42cff644085 100644 --- a/sys/dev/aic7xxx/aic7xxx.c +++ b/sys/dev/aic7xxx/aic7xxx.c @@ -3924,7 +3924,7 @@ ahc_alloc(void *platform_arg, char *name) return (NULL); } LIST_INIT(&ahc->pending_scbs); - LIST_INIT(&ahd->timedout_scbs); + LIST_INIT(&ahc->timedout_scbs); /* We don't know our unit number until the OSM sets it */ ahc->name = name; ahc->unit = -1; @@ -6707,6 +6707,12 @@ ahc_print_register(ahc_reg_parse_entry_t *table, u_int num_entries, { int printed; u_int printed_mask; + u_int dummy_column; + + if (cur_column == NULL) { + dummy_column = 0; + cur_column = &dummy_column; + } if (cur_column != NULL && *cur_column >= wrap_point) { printf("\n"); |