diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-10-02 18:51:37 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-10-02 18:51:37 +0000 |
commit | 79e295e875a3b46b5efee6ae6f44078e661beac2 (patch) | |
tree | fe507a6c1691c606fa5448777b5a6886851fab7b /usr.sbin/sicontrol | |
parent | 80e6a01a9aa34d60124c82b7cab1420b8b731426 (diff) | |
download | src-79e295e875a3b46b5efee6ae6f44078e661beac2.tar.gz src-79e295e875a3b46b5efee6ae6f44078e661beac2.zip |
Get debugging macros from sivar.h
Disable some code which magics minor numbers into card/port numbers.
I think we will have to parse this from the device name in the future,
but I need to confer with peter@ about this.
Put sicontrol back in the build.
Troublespotter: dwhite
Notes
Notes:
svn path=/head/; revision=136063
Diffstat (limited to 'usr.sbin/sicontrol')
-rw-r--r-- | usr.sbin/sicontrol/sicontrol.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.sbin/sicontrol/sicontrol.c b/usr.sbin/sicontrol/sicontrol.c index b67668842d55..84e9782abc44 100644 --- a/usr.sbin/sicontrol/sicontrol.c +++ b/usr.sbin/sicontrol/sicontrol.c @@ -44,7 +44,9 @@ static const char rcsid[] = #include <sys/ioctl.h> #include <sys/tty.h> +#define SI_DEBUG #include <dev/si/si.h> +#include <dev/si/sivar.h> struct lv { char *lv_name; @@ -158,8 +160,12 @@ main(int argc, char **argv) } if (stat(Devname, &st) < 0) errx(1, "can't stat %s", Devname); +#if 0 dev.sid_card = SI_CARD(minor(st.st_rdev)); dev.sid_port = SI_PORT(minor(st.st_rdev)); +#else + errx(1, "Sorry, code missing to parse device name into card/port"); +#endif tc.tc_dev = dev; } ctlfd = opencontrol(); |