diff options
author | ache <ache@FreeBSD.org> | 1997-03-25 02:54:34 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-03-25 02:54:34 +0000 |
commit | 75276ab04be431ac54b1bc1a24b88e0f29adff4f (patch) | |
tree | 9dedd6144a9ffde00425bf3cb7980271f4d3605a /usr.sbin | |
parent | a28593bb74f8399409fccbca049d3df131f9563d (diff) | |
download | FreeBSD-src-75276ab04be431ac54b1bc1a24b88e0f29adff4f.zip FreeBSD-src-75276ab04be431ac54b1bc1a24b88e0f29adff4f.tar.gz |
Print negative values only for two cases used
in config for iobase: -1 (auto) and -2 (none)
Other values are printed as big port numbers
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/config/mkioconf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/config/mkioconf.c b/usr.sbin/config/mkioconf.c index 8647e4c..ac55546 100644 --- a/usr.sbin/config/mkioconf.c +++ b/usr.sbin/config/mkioconf.c @@ -757,10 +757,10 @@ isa_devtab(fp, table, dev_idp) fprintf(fp, "{ %2d, &%3sdriver,", (*dev_idp)++, dp->d_name); if (dp->d_port) fprintf(fp, " %8s,", dp->d_port); - else if (dp->d_portn >= 0) - fprintf(fp, " 0x%04x,", dp->d_portn); + else if (dp->d_portn == -1 || dp->d_portn == -2) + fprintf(fp, " %2d,", dp->d_portn); else - fprintf(fp, " %d,", dp->d_portn); + fprintf(fp, " 0x%04x,", dp->d_portn); fprintf(fp, "%6s, %2d, C 0x%05X, %5d, %8s, %3d, 0x%04X, 0, 0, 0, 0, %6d, %8d, 0 },\n", sirq(dp->d_irq), dp->d_drq, dp->d_maddr, dp->d_msize, shandler(dp), dp->d_unit, |