Fix iobase printing for autodetect and none cases
(negative numbers was printed as very big ports)
This commit is contained in:
parent
d89c1a60a7
commit
fe02b63fbe
@ -757,8 +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
|
||||
else if (dp->d_portn >= 0)
|
||||
fprintf(fp, " 0x%04x,", dp->d_portn);
|
||||
else
|
||||
fprintf(fp, " %d,", 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,
|
||||
|
Loading…
Reference in New Issue
Block a user