Ignore:
Timestamp:
Jul 31, 2013, 8:08:59 PM (12 years ago)
Author:
David Azarewicz
Message:

code cleanup - debug messages
fixed defect in smart ioctl

File:
1 edited

Legend:

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

    r164 r165  
    44 * Copyright (c) 2011 thi.guten Software Development
    55 * Copyright (c) 2011 Mensys B.V.
     6 * Portions copyright (c) 2013 David Azarewicz
    67 *
    78 * Authors: Christian Mueller, Markus Thielen
     
    188189
    189190  spin_lock(com_lock);
    190   #ifdef NOT_USED
    191   /* block process until data is available in the trace buffer. */
    192   while (ahci_trace_buf.writep == ahci_trace_buf.readp ) { /* buffer is empty */
    193     spin_lock(com_lock);
    194       #ifndef OS2AHCI_SMP
    195       com_lock = 0;
    196       #endif
    197       if (DevHelp_ProcBlock((ULONG) ahci_trace_buf.phys_addr,
    198                             (ULONG) -1, 0) == WAIT_INTERRUPTED) {
    199         /* user pressed Ctrl+C or whatever */
    200         rwrb->NumSectors = 0;
    201         return STDON;
    202       }
    203     spin_lock(com_lock);
    204   }
    205   #endif
    206191
    207192  /* get pointer to caller's buffer */
     
    235220    AD_INFO *ai = ad_infos + a;
    236221
    237     ntprintf("Adapter %d: %d:%d:%d irq=%d addr=0x%lx version=%lx\n", a,
     222    ntprintf("Adapter %d: PCI=%d:%d:%d ID=%x:%x irq=%d addr=0x%lx version=%lx\n", a,
    238223      ai->bus, ai->dev_func>>3, ai->dev_func&7,
     224      ai->pci->vendor, ai->pci->device,
    239225      ai->irq, ai->mmio_phys,
    240226      ai->bios_config[HOST_VERSION / sizeof(u32)]);
Note: See TracChangeset for help on using the changeset viewer.