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/ctxhook.c

    r205 r209  
    9797  rearm_ctx_hook = 0;
    9898
    99   DPRINTF(8,"restart_ctxhook() started\n");
     99  DPRINTF(DBG_FUNCBEG, DBG_PREFIX": restart_ctxhook() started\n");
    100100  memset(&done_queue, 0x00, sizeof(done_queue));
    101101
     
    124124        need_reset = 0;
    125125
    126         DPRINTF(8,"port %d, TF_DATA: 0x%x\n", p, readl(port_mmio + PORT_TFDATA));
     126        DPRINTF(DBG_DETAILED, DBG_PREFIX": port %d, TF_DATA: 0x%x\n", p, readl(port_mmio + PORT_TFDATA));
    127127
    128128        /* get "current command slot"; only valid if there are no NCQ cmds */
    129129        ccs = (int) ((readl(port_mmio + PORT_CMD) >> 8) & 0x1f);
    130         DPRINTF(8," PORT_CMD      = 0x%x\n", ccs);
     130        DPRINTF(DBG_DETAILED, DBG_PREFIX": PORT_CMD      = 0x%x\n", ccs);
    131131
    132132        for (vIorb = ai->ports[p].iorb_queue.vRoot; vIorb != FAR16NULL; vIorb = vNext)
     
    152152              {
    153153                /* this is the non-NCQ command that failed */
    154                 DPRINTF(0,"failing IORB: %x\n", vIorb);
     154                DPRINTF(0, DBG_PREFIX": failing IORB: %x\n", vIorb);
    155155                vProblemIorb = vIorb;
    156156              }
     
    179179        if (ai->ports[p].ncq_cmds != 0 || ai->ports[p].reg_cmds != 0)
    180180        {
    181           DPRINTF(0,"warning: commands issued not 0 (%08lx/%08lx); resetting...\n",
     181          DPRINTF(0, DBG_PREFIX": warning: commands issued not 0 (%08lx/%08lx); resetting...\n",
    182182                  ai->ports[p].ncq_cmds, ai->ports[p].reg_cmds);
    183183          need_reset = 1;
     
    278278  spin_unlock(drv_lock);
    279279
    280   DPRINTF(8,"restart_ctxhook() completed\n");
     280  DPRINTF(DBG_FUNCEND, DBG_PREFIX": restart_ctxhook() completed\n");
    281281
    282282  /* Check whether we have to rearm ourselves because some adapters were busy
     
    332332  rearm_ctx_hook = 0;
    333333
    334   DPRINTF(8,"reset_ctxhook() started\n");
     334  DPRINTF(DBG_FUNCBEG, DBG_PREFIX": reset_ctxhook() started\n");
    335335  memset(&done_queue, 0x00, sizeof(done_queue));
    336336
     
    457457  spin_unlock(drv_lock);
    458458
    459   DPRINTF(8,"reset_ctxhook() completed\n");
     459  DPRINTF(DBG_FUNCEND, DBG_PREFIX": reset_ctxhook() completed\n");
    460460
    461461  /* Check whether we have to rearm ourselves because some adapters were busy
     
    489489  D32ThunkStackTo32();
    490490
    491   DPRINTF(8,"engine_ctxhook() started\n");
     491  DPRINTF(DBG_FUNCBEG, DBG_PREFIX": engine_ctxhook() started\n");
    492492  if (resume_sleep_flag)
    493493  {
     
    503503  spin_unlock(drv_lock);
    504504
    505   DPRINTF(8,"engine_ctxhook() completed\n");
     505  DPRINTF(DBG_FUNCEND, DBG_PREFIX": engine_ctxhook() completed\n");
    506506
    507507  if (iorbs_sent != 0)
Note: See TracChangeset for help on using the changeset viewer.