Now that we do collision detection and assign all ADB devices to distinct

addresses, it makes sense to print the actual address of the device rather
than the original address.  The latter is useful to distinguish the type
of device only, so we maintain that data internally (as we always have).

This closes PR 10557 from Dave Huang.
This commit is contained in:
scottr 2000-09-27 03:22:05 +00:00
parent 815d8f961b
commit 7c2fc39588
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: adb.c,v 1.38 2000/09/19 05:17:55 scottr Exp $ */
/* $NetBSD: adb.c,v 1.39 2000/09/27 03:22:05 scottr Exp $ */
/*
* Copyright (C) 1994 Bradley A. Grantham
@ -197,7 +197,7 @@ adbprint(args, name)
rv = UNSUPP; /* most ADB device types are unsupported */
/* print out what kind of ADB device we have found */
printf("%s addr %d: ", name, aa_args->origaddr);
printf("%s addr %d: ", name, aa_args->adbaddr);
switch(aa_args->origaddr) {
#ifdef DIAGNOSTIC
case 0:
@ -251,7 +251,7 @@ adbprint(args, name)
#endif /* DIAGNOSTIC */
}
} else /* a device matched and was configured */
printf(" addr %d: ", aa_args->origaddr);
printf(" addr %d: ", aa_args->adbaddr);
return (rv);
}