Ignore:
Timestamp:
Mar 6, 2021, 7:44:15 PM (4 years ago)
Author:
David Azarewicz
Message:

Debugging support changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/os2ahci/trace.c

    r207 r209  
    4242          if (pi->devs[d].atapi) dprintf(0," atapi");
    4343          if (pi->devs[d].removable) dprintf(0," removable");
    44           if (pi->devs[d].dev_info.Method != NULL)
     44          if (pi->devs[d].dev_info.pMethod != NULL)
    4545          {
    4646            dprintf(0," %d cylinders, %d heads, %d sectors per track (%dMB) (%s)",
    47               pi->devs[d].dev_info.Cylinders, pi->devs[d].dev_info.HeadsPerCylinder, pi->devs[d].dev_info.SectorsPerTrack,
    48               (ULONG)(pi->devs[d].dev_info.TotalSectors/2048), pi->devs[d].dev_info.Method);
     47              pi->devs[d].dev_info.ulCylinders, pi->devs[d].dev_info.usHeadsPerCylinder,
     48              pi->devs[d].dev_info.usSectorsPerTrack,
     49              (ULONG)(pi->devs[d].dev_info.ullTotalSectors/2048), pi->devs[d].dev_info.pMethod);
    4950          }
    5051          if (pi->devs[d].ignored) dprintf(0," Unusable");
     
    5253          dprintf(0,"          Model: %s\n", pi->devs[d].dev_name);
    5354        }
    54         else if (verbosity > 0)
     55        else if (iVerbose > 0)
    5556        {
    5657          if (iFlag) dprintf(0,"  Port %d: No drive present\n", p);
     
    6465void DumpIorb(IORBH *pIorb)
    6566{
    66   if (D32g_DbgLevel < 2) return;
     67  if (!(D32g_DbgLevel & DBG_DETAILED)) return;
    6768  if (!ad_infos[iorb_unit_adapter(pIorb)].ports[iorb_unit_port(pIorb)].devs[iorb_unit_device(pIorb)].atapi) return;
    6869
Note: See TracChangeset for help on using the changeset viewer.