Ignore:
Timestamp:
Sep 7, 2013, 5:52:45 PM (12 years ago)
Author:
David Azarewicz
Message:

Enhanced debug output
Fixed a long time PCI ID bug.

File:
1 edited

Legend:

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

    r170 r171  
    44 * Copyright (c) 2011 thi.guten Software Development
    55 * Copyright (c) 2011 Mensys B.V.
    6  * Portions copyright (c) 2013 David Azarewicz
     6 * Copyright (c) 2013 David Azarewicz
    77 *
    88 * Authors: Christian Mueller, Markus Thielen
     
    210210 * Create adapter/port/device list for user output.
    211211 */
    212 void build_user_info(void)
     212void build_user_info(int check)
    213213{
    214214  int a;
     
    216216  int d;
    217217
     218  if ( check && (ahci_trace_buf.readp != ahci_trace_buf.writep)) return;
     219
    218220  for (a = 0; a < ad_info_cnt; a++) {
    219221    AD_INFO *ai = ad_infos + a;
    220222
    221     ntprintf("Adapter %d: PCI=%d:%d:%d ID=%04x:%04x irq=%d addr=0x%lx version=%lx\n", a,
     223    ntprintf("Adapter %d: PCI=%d:%d:%d ID=%04x:%04x %s %s irq=%d addr=0x%lx version=%lx\n", a,
    222224      ai->bus, ai->dev_func>>3, ai->dev_func&7,
    223       ai->pci->vendor, ai->pci->device,
     225      ai->pci_vendor, ai->pci_device, vendor_from_id(ai->pci_vendor), ai->pci->chipname,
    224226      ai->irq, ai->mmio_phys,
    225227      ai->bios_config[HOST_VERSION / sizeof(u32)]);
Note: See TracChangeset for help on using the changeset viewer.