VirtualBox

Changeset 2937 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
May 30, 2007 4:27:55 PM (18 years ago)
Author:
vboxsync
Message:

Clean up log formatting, no more guessing whether something is hex or
not.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DevPCNet.cpp

    r2912 r2937  
    539539*******************************************************************************/
    540540#define PRINT_TMD(T) Log2((    \
    541         "TMD0 : TBADR=0x%08x\n" \
     541        "TMD0 : TBADR=%#010x\n" \
    542542        "TMD1 : OWN=%d, ERR=%d, FCS=%d, LTI=%d, "       \
    543543        "ONE=%d, DEF=%d, STP=%d, ENP=%d,\n"             \
     
    556556
    557557#define PRINT_RMD(R) Log2((    \
    558         "RMD0 : RBADR=0x%08x\n" \
     558        "RMD0 : RBADR=%#010x\n" \
    559559        "RMD1 : OWN=%d, ERR=%d, FRAM=%d, OFLO=%d, "     \
    560560        "CRC=%d, BUFF=%d, STP=%d, ENP=%d,\n       "     \
     
    785785    Log(("packet dhost=%02x:%02x:%02x:%02x:%02x:%02x, "               \
    786786         "shost=%02x:%02x:%02x:%02x:%02x:%02x, "                      \
    787          "type=0x%04x (bcast=%d)\n",                                  \
     787         "type=%#06x (bcast=%d)\n",                                  \
    788788         hdr->ether_dhost[0],hdr->ether_dhost[1],hdr->ether_dhost[2], \
    789789         hdr->ether_dhost[3],hdr->ether_dhost[4],hdr->ether_dhost[5], \
     
    10261026    PCNetState *pData   = (PCNetState *)pvUser;
    10271027
    1028     Log(("#%d pcnetHandleRingWriteGC: write to %08x\n", PCNETSTATE_2_DEVINS(pData)->iInstance, GCPhysFault));
     1028    Log(("#%d pcnetHandleRingWriteGC: write to %#010x\n", PCNETSTATE_2_DEVINS(pData)->iInstance, GCPhysFault));
    10291029
    10301030    uint32_t cb;
     
    10871087    PCNetState *pData   = PDMINS2DATA(pDevIns, PCNetState *);
    10881088
    1089     Log(("#%d pcnetHandleRingWrite: write to %08x\n", PCNETSTATE_2_DEVINS(pData)->iInstance, GCPhys));
     1089    Log(("#%d pcnetHandleRingWrite: write to %#010x\n", PCNETSTATE_2_DEVINS(pData)->iInstance, GCPhys));
    10901090#ifdef VBOX_WITH_STATISTICS
    10911091    STAM_COUNTER_INC(&CTXSUFF(pData->StatRingWrite));
     
    12571257    int rc;
    12581258
    1259     Log(("pcnetUpdateRingHandlers TD %VGp size %x -> %VGp size %x\n", pData->TDRAPhysOld, pData->cbTDRAOld, pData->GCTDRA, pcnetTdraAddr(pData, 0)));
    1260     Log(("pcnetUpdateRingHandlers RX %VGp size %x -> %VGp size %x\n", pData->RDRAPhysOld, pData->cbRDRAOld, pData->GCRDRA, pcnetRdraAddr(pData, 0)));
     1259    Log(("pcnetUpdateRingHandlers TD %VGp size %#x -> %VGp size %#x\n", pData->TDRAPhysOld, pData->cbTDRAOld, pData->GCTDRA, pcnetTdraAddr(pData, 0)));
     1260    Log(("pcnetUpdateRingHandlers RX %VGp size %#x -> %VGp size %#x\n", pData->RDRAPhysOld, pData->cbRDRAOld, pData->GCRDRA, pcnetRdraAddr(pData, 0)));
    12611261
    12621262    /** @todo unregister order not correct! */
     
    13431343{
    13441344    PPDMDEVINS pDevIns = PCNETSTATE_2_DEVINS(pData);
    1345     Log(("#%d pcnetInit: init_addr=0x%08x\n", PCNETSTATE_2_DEVINS(pData)->iInstance,
     1345    Log(("#%d pcnetInit: init_addr=%#010x\n", PCNETSTATE_2_DEVINS(pData)->iInstance,
    13461346         PHYSADDR(pData, CSR_IADR(pData))));
    13471347
     
    13711371        pData->GCUpperPhys = 0;
    13721372        PCNET_INIT();
    1373         Log(("#%d initblk.rlen=0x%02x, initblk.tlen=0x%02x\n",
     1373        Log(("#%d initblk.rlen=%#04x, initblk.tlen=%#04x\n",
    13741374             PCNETSTATE_2_DEVINS(pData)->iInstance, initblk.rlen, initblk.tlen));
    13751375    }
     
    13791379        pData->GCUpperPhys = (0xff00 & (uint32_t)pData->aCSR[2]) << 16;
    13801380        PCNET_INIT();
    1381         Log(("#%d initblk.rlen=0x%02x, initblk.tlen=0x%02x\n",
     1381        Log(("#%d initblk.rlen=%#04x, initblk.tlen=%#04x\n",
    13821382             PCNETSTATE_2_DEVINS(pData)->iInstance, initblk.rlen, initblk.tlen));
    13831383    }
     
    13991399    CSR_CXST(pData) = CSR_CXBC(pData) = CSR_NXST(pData) = CSR_NXBC(pData) = 0;
    14001400
    1401     LogRel(("PCNet#%d: Init: ss32=%d GCRDRA=0x%08x[%d] GCTDRA=0x%08x[%d]\n",
     1401    LogRel(("PCNet#%d: Init: ss32=%d GCRDRA=%#010x[%d] GCTDRA=%#010x[%d]\n",
    14021402            PCNETSTATE_2_DEVINS(pData)->iInstance, BCR_SSIZE32(pData),
    14031403            pData->GCRDRA, CSR_RCVRL(pData), pData->GCTDRA, CSR_XMTRL(pData)));
     
    14981498                STAM_PROFILE_ADV_STOP(&pData->CTXSUFF(StatRdtePoll), a);
    14991499                /* This is not problematic since we don't own the descriptor */
    1500                 LogRel(("PCNet#%d: BAD RMD ENTRIES AT 0x%08x (i=%d)\n",
     1500                LogRel(("PCNet#%d: BAD RMD ENTRIES AT %#010x (i=%d)\n",
    15011501                        PCNETSTATE_2_DEVINS(pData)->iInstance, addr, i));
    15021502                return;
     
    15291529            STAM_PROFILE_ADV_STOP(&pData->CTXSUFF(StatRdtePoll), a);
    15301530            /* This is not problematic since we don't own the descriptor */
    1531             LogRel(("PCNet#%d: BAD RMD ENTRIES + AT 0x%08x (i=%d)\n",
     1531            LogRel(("PCNet#%d: BAD RMD ENTRIES + AT %#010x (i=%d)\n",
    15321532                    PCNETSTATE_2_DEVINS(pData)->iInstance, addr, i));
    15331533            return;
     
    15681568        {
    15691569            STAM_PROFILE_ADV_STOP(&pData->CTXSUFF(StatTdtePoll), a);
    1570             LogRel(("PCNet#%d: BAD TMD XDA=0x%08x\n",
     1570            LogRel(("PCNet#%d: BAD TMD XDA=%#010x\n",
    15711571                    PCNETSTATE_2_DEVINS(pData)->iInstance, PHYSADDR(pData, cxda)));
    15721572            return 0;
     
    16631663                RMD rmd;
    16641664                pcnetRmdLoad(pData, &rmd, PHYSADDR(pData, GCPhys));
    1665                 LogRel(("  %08x\n", rmd.rmd1));
     1665                LogRel(("  %#010x\n", rmd.rmd1));
    16661666                GCPhys += cb;
    16671667            }
     
    17611761            pData->aCSR[0] |= 0x0400;
    17621762
    1763             Log(("#%d RCVRC=%d CRDA=0x%08x BLKS=%d\n", PCNETSTATE_2_DEVINS(pData)->iInstance,
     1763            Log(("#%d RCVRC=%d CRDA=%#010x BLKS=%d\n", PCNETSTATE_2_DEVINS(pData)->iInstance,
    17641764                 CSR_RCVRC(pData), PHYSADDR(pData, CSR_CRDA(pData)), pktcount));
    17651765#ifdef PCNET_DEBUG_RMD
     
    20232023
    20242024#ifdef PCNET_DEBUG_TMD
    2025         Log2(("#%d TMDLOAD 0x%08x\n", PCNETSTATE_2_DEVINS(pData)->iInstance, PHYSADDR(pData, CSR_CXDA(pData))));
     2025        Log2(("#%d TMDLOAD %#010x\n", PCNETSTATE_2_DEVINS(pData)->iInstance, PHYSADDR(pData, CSR_CXDA(pData))));
    20262026        PRINT_TMD(&tmd);
    20272027#endif
     
    22812281#ifdef LOG_ENABLED
    22822282    TMD dummy;
    2283     Log2(("#%d pcnetPollTimer time=%08x TDMD=%d TXON=%d POLL=%d TDTE=%d TDRA=%x\n",
     2283    Log2(("#%d pcnetPollTimer time=%#010x TDMD=%d TXON=%d POLL=%d TDTE=%d TDRA=%#x\n",
    22842284          PCNETSTATE_2_DEVINS(pData)->iInstance, RTTimeMilliTS(), CSR_TDMD(pData), CSR_TXON(pData),
    22852285          !CSR_DPOLL(pData), pcnetTdtePoll(pData, &dummy), pData->GCTDRA));
    2286     Log2(("#%d pcnetPollTimer: CSR_CXDA=%x CSR_XMTRL=%d CSR_XMTRC=%d\n",
     2286    Log2(("#%d pcnetPollTimer: CSR_CXDA=%#x CSR_XMTRL=%d CSR_XMTRC=%d\n",
    22872287          PCNETSTATE_2_DEVINS(pData)->iInstance, CSR_CXDA(pData), CSR_XMTRL(pData), CSR_XMTRC(pData)));
    22882288#endif
     
    22922292        TMD tmd;
    22932293        pcnetTmdLoad(pData, &tmd, PHYSADDR(pData, CSR_CXDA(pData)));
    2294         Log2(("#%d pcnetPollTimer: TMDLOAD 0x%08x\n", PCNETSTATE_2_DEVINS(pData)->iInstance, PHYSADDR(pData, CSR_CXDA(pData))));
     2294        Log2(("#%d pcnetPollTimer: TMDLOAD %#010x\n", PCNETSTATE_2_DEVINS(pData)->iInstance, PHYSADDR(pData, CSR_CXDA(pData))));
    22952295        PRINT_TMD(&tmd);
    22962296    }
     
    23332333    int      rc  = VINF_SUCCESS;
    23342334#ifdef PCNET_DEBUG_CSR
    2335     Log(("#%d pcnetCSRWriteU16: rap=%d val=0x%04x\n", PCNETSTATE_2_DEVINS(pData)->iInstance, u32RAP, val));
     2335    Log(("#%d pcnetCSRWriteU16: rap=%d val=%#06x\n", PCNETSTATE_2_DEVINS(pData)->iInstance, u32RAP, val));
    23362336#endif
    23372337    switch (u32RAP)
     
    23572357                }
    23582358#endif
    2359                 LOG_REGISTER(("PCNet#%d: WRITE CSR%d, %04x => %04x (%04x)\n",
     2359                LOG_REGISTER(("PCNet#%d: WRITE CSR%d, %#06x => %#06x (%#06x)\n",
    23602360                              PCNETSTATE_2_DEVINS(pData)->iInstance,
    23612361                              u32RAP, new_value, csr0, pData->aCSR[0]));
     
    24262426            if (CSR_STOP(pData) || CSR_SPND(pData))
    24272427                break;
    2428             LOG_REGISTER(("PCNet#%d: WRITE CSR%d, %04x\n",
     2428            LOG_REGISTER(("PCNet#%d: WRITE CSR%d, %#06x\n",
    24292429                         PCNETSTATE_2_DEVINS(pData)->iInstance, u32RAP, val));
    24302430            return rc;
    24312431        case 3: /* Interrupt Mask and Deferral Control */
    2432             LOG_REGISTER(("PCNet#%d: WRITE CSR%d, %04x\n",
     2432            LOG_REGISTER(("PCNet#%d: WRITE CSR%d, %#06x\n",
    24332433                         PCNETSTATE_2_DEVINS(pData)->iInstance, u32RAP, val));
    24342434            break;
    24352435        case 4: /* Test and Features Control */
    2436             LOG_REGISTER(("PCNet#%d: WRITE CSR%d, %04x\n",
     2436            LOG_REGISTER(("PCNet#%d: WRITE CSR%d, %#06x\n",
    24372437                         PCNETSTATE_2_DEVINS(pData)->iInstance, u32RAP, val));
    24382438            pData->aCSR[4] &= ~(val & 0x026a);
     
    24412441            break;
    24422442        case 5: /* Extended Control and Interrupt 1 */
    2443             LOG_REGISTER(("PCNet#%d: WRITE CSR%d, %04x\n",
     2443            LOG_REGISTER(("PCNet#%d: WRITE CSR%d, %#06x\n",
    24442444                        PCNETSTATE_2_DEVINS(pData)->iInstance, u32RAP, val));
    24452445            pData->aCSR[5] &= ~(val & 0x0a90);
     
    24652465            return pcnetCSRWriteU16(pData, 2, val);
    24662466        case 58: /* Software Style */
    2467             LOG_REGISTER(("PCNet#%d: WRITE SW_STYLE, %04x\n",
     2467            LOG_REGISTER(("PCNet#%d: WRITE SW_STYLE, %#06x\n",
    24682468                         PCNETSTATE_2_DEVINS(pData)->iInstance, val));
    24692469            rc = pcnetBCRWriteU16(pData, BCR_SWS, val);
     
    25002500        default:
    25012501            val = pData->aCSR[u32RAP];
    2502             LOG_REGISTER(("PCNet#%d: read  CSR%d => %04x\n",
     2502            LOG_REGISTER(("PCNet#%d: read  CSR%d => %#06x\n",
    25032503                    PCNETSTATE_2_DEVINS(pData)->iInstance, u32RAP, val));
    25042504    }
    25052505#ifdef PCNET_DEBUG_CSR
    2506     Log(("#%d pcnetCSRReadU16: u32RAP=%d val=0x%04x\n", PCNETSTATE_2_DEVINS(pData)->iInstance,
     2506    Log(("#%d pcnetCSRReadU16: u32RAP=%d val=%#06x\n", PCNETSTATE_2_DEVINS(pData)->iInstance,
    25072507         u32RAP, val));
    25082508#endif
     
    25152515    u32RAP &= 0x7f;
    25162516#ifdef PCNET_DEBUG_BCR
    2517     Log2(("#%d pcnetBCRWriteU16: u32RAP=%d val=0x%04x\n", PCNETSTATE_2_DEVINS(pData)->iInstance,
     2517    Log2(("#%d pcnetBCRWriteU16: u32RAP=%d val=%#06x\n", PCNETSTATE_2_DEVINS(pData)->iInstance,
    25182518         u32RAP, val));
    25192519#endif
     
    25272527            {
    25282528                default:
    2529                     Log(("Bad SWSTYLE=0x%02x\n", val & 0xff));
     2529                    Log(("Bad SWSTYLE=%#04x\n", val & 0xff));
    25302530                    // fall through
    25312531                case 0:
     
    25462546                    break;
    25472547            }
    2548             LOG_REGISTER(("PCNet#%d: WRITE SW_STYLE, %04x\n",
     2548            LOG_REGISTER(("PCNet#%d: WRITE SW_STYLE, %#06x\n",
    25492549                         PCNETSTATE_2_DEVINS(pData)->iInstance, val));
    2550             Log(("BCR_SWS=0x%04x\n", val));
     2550            Log(("BCR_SWS=%#06x\n", val));
    25512551            pData->aCSR[58] = val;
    25522552            /* fall through */
     
    25612561        case BCR_PLAT:
    25622562        case BCR_MIIADDR:
    2563             LOG_REGISTER(("PCNet#%d: WRITE BCR%d, %04x\n",
     2563            LOG_REGISTER(("PCNet#%d: WRITE BCR%d, %#06x\n",
    25642564                         PCNETSTATE_2_DEVINS(pData)->iInstance, u32RAP, val));
    25652565            pData->aBCR[u32RAP] = val;
     
    25672567
    25682568        case BCR_MIIMDR:
    2569             LOG_REGISTER(("PCNet#%d: WRITE MII%d, %04x\n",
     2569            LOG_REGISTER(("PCNet#%d: WRITE MII%d, %#06x\n",
    25702570                         PCNETSTATE_2_DEVINS(pData)->iInstance, u32RAP, val));
    25712571            pData->aMII[pData->aBCR[BCR_MIIADDR] & 0x1f] = val;
     
    26982698    }
    26992699#ifdef PCNET_DEBUG_BCR
    2700     Log2(("#%d pcnetBCRReadU16: u32RAP=%d val=0x%04x\n", PCNETSTATE_2_DEVINS(pData)->iInstance,
     2700    Log2(("#%d pcnetBCRReadU16: u32RAP=%d val=%#06x\n", PCNETSTATE_2_DEVINS(pData)->iInstance,
    27012701         u32RAP, val));
    27022702#endif
     
    27432743    addr &= 0x0f;
    27442744    val  &= 0xff;
    2745     Log(("#%d pcnetAPROMWriteU8: addr=0x%08x val=0x%02x\n", PCNETSTATE_2_DEVINS(pData)->iInstance,
     2745    Log(("#%d pcnetAPROMWriteU8: addr=%#010x val=%#04x\n", PCNETSTATE_2_DEVINS(pData)->iInstance,
    27462746         addr, val));
    27472747    /* Check APROMWE bit to enable write access */
     
    27532753{
    27542754    uint32_t val = pData->aPROM[addr &= 0x0f];
    2755     Log(("#%d pcnetAPROMReadU8: addr=0x%08x val=0x%02x\n", PCNETSTATE_2_DEVINS(pData)->iInstance,
     2755    Log(("#%d pcnetAPROMReadU8: addr=%#010x val=%#04x\n", PCNETSTATE_2_DEVINS(pData)->iInstance,
    27562756         addr, val));
    27572757    return val;
     
    27632763
    27642764#ifdef PCNET_DEBUG_IO
    2765     Log2(("#%d pcnetIoportWriteU16: addr=0x%08x val=0x%04x\n", PCNETSTATE_2_DEVINS(pData)->iInstance,
     2765    Log2(("#%d pcnetIoportWriteU16: addr=%#010x val=%#06x\n", PCNETSTATE_2_DEVINS(pData)->iInstance,
    27662766         addr, val));
    27672767#endif
     
    28232823skip_update_irq:
    28242824#ifdef PCNET_DEBUG_IO
    2825     Log2(("#%d pcnetIoportReadU16: addr=0x%08x val=0x%04x\n", PCNETSTATE_2_DEVINS(pData)->iInstance,
     2825    Log2(("#%d pcnetIoportReadU16: addr=%#010x val=%#06x\n", PCNETSTATE_2_DEVINS(pData)->iInstance,
    28262826         addr, val & 0xffff));
    28272827#endif
     
    28342834
    28352835#ifdef PCNET_DEBUG_IO
    2836     Log2(("#%d pcnetIoportWriteU32: addr=0x%08x val=0x%08x\n", PCNETSTATE_2_DEVINS(pData)->iInstance,
     2836    Log2(("#%d pcnetIoportWriteU32: addr=%#010x val=%#010x\n", PCNETSTATE_2_DEVINS(pData)->iInstance,
    28372837         addr, val));
    28382838#endif
     
    29022902skip_update_irq:
    29032903#ifdef PCNET_DEBUG_IO
    2904     Log2(("#%d pcnetIoportReadU32: addr=0x%08x val=0x%08x\n", PCNETSTATE_2_DEVINS(pData)->iInstance,
     2904    Log2(("#%d pcnetIoportReadU32: addr=%#010x val=%#010x\n", PCNETSTATE_2_DEVINS(pData)->iInstance,
    29052905         addr, val));
    29062906#endif
     
    29112911{
    29122912#ifdef PCNET_DEBUG_IO
    2913     Log2(("#%d pcnetMMIOWriteU8: addr=0x%08x val=0x%02x\n", PCNETSTATE_2_DEVINS(pData)->iInstance,
     2913    Log2(("#%d pcnetMMIOWriteU8: addr=%#010x val=%#04x\n", PCNETSTATE_2_DEVINS(pData)->iInstance,
    29142914         addr, val));
    29152915#endif
     
    29242924        val = pcnetAPROMReadU8(pData, addr);
    29252925#ifdef PCNET_DEBUG_IO
    2926     Log2(("#%d pcnetMMIOReadU8: addr=0x%08x val=0x%02x\n", PCNETSTATE_2_DEVINS(pData)->iInstance,
     2926    Log2(("#%d pcnetMMIOReadU8: addr=%#010x val=%#04x\n", PCNETSTATE_2_DEVINS(pData)->iInstance,
    29272927         addr, val & 0xff));
    29282928#endif
     
    29332933{
    29342934#ifdef PCNET_DEBUG_IO
    2935     Log2(("#%d pcnetMMIOWriteU16: addr=0x%08x val=0x%04x\n", PCNETSTATE_2_DEVINS(pData)->iInstance,
     2935    Log2(("#%d pcnetMMIOWriteU16: addr=%#010x val=%#06x\n", PCNETSTATE_2_DEVINS(pData)->iInstance,
    29362936         addr, val));
    29372937#endif
     
    29592959    }
    29602960#ifdef PCNET_DEBUG_IO
    2961     Log2(("#%d pcnetMMIOReadU16: addr=0x%08x val = 0x%04x\n", PCNETSTATE_2_DEVINS(pData)->iInstance,
     2961    Log2(("#%d pcnetMMIOReadU16: addr=%#010x val = %#06x\n", PCNETSTATE_2_DEVINS(pData)->iInstance,
    29622962         addr, val & 0xffff));
    29632963#endif
     
    29682968{
    29692969#ifdef PCNET_DEBUG_IO
    2970     Log2(("#%d pcnetMMIOWriteU32: addr=0x%08x val=0x%08x\n", PCNETSTATE_2_DEVINS(pData)->iInstance,
     2970    Log2(("#%d pcnetMMIOWriteU32: addr=%#010x val=%#010x\n", PCNETSTATE_2_DEVINS(pData)->iInstance,
    29712971         addr, val));
    29722972#endif
     
    30003000    }
    30013001#ifdef PCNET_DEBUG_IO
    3002     Log2(("#%d pcnetMMIOReadU32: addr=0x%08x val=0x%08x\n", PCNETSTATE_2_DEVINS(pData)->iInstance,
     3002    Log2(("#%d pcnetMMIOReadU32: addr=%#010x val=%#010x\n", PCNETSTATE_2_DEVINS(pData)->iInstance,
    30033003         addr, val));
    30043004#endif
     
    34443444
    34453445    pHlp->pfnPrintf(pHlp,
    3446                     "CSR0=%04RX32:\n",
     3446                    "CSR0=%#06x:\n",
    34473447                    pData->aCSR[0]);
    34483448
    34493449    pHlp->pfnPrintf(pHlp,
    3450                     "CSR1=%04RX32:\n",
     3450                    "CSR1=%#06x:\n",
    34513451                    pData->aCSR[1]);
    34523452
    34533453    pHlp->pfnPrintf(pHlp,
    3454                     "CSR2=%04RX32:\n",
     3454                    "CSR2=%#06x:\n",
    34553455                    pData->aCSR[2]);
    34563456
    34573457    pHlp->pfnPrintf(pHlp,
    3458                     "CSR3=%04RX32: BSWP=%d EMBA=%d DXMT2PD=%d LAPPEN=%d DXSUFLO=%d IDONM=%d TINTM=%d RINTM=%d MERRM=%d MISSM=%d BABLM=%d\n",
     3458                    "CSR3=%#06x: BSWP=%d EMBA=%d DXMT2PD=%d LAPPEN=%d DXSUFLO=%d IDONM=%d TINTM=%d RINTM=%d MERRM=%d MISSM=%d BABLM=%d\n",
    34593459                    pData->aCSR[3],
    34603460                    !!(pData->aCSR[3] & BIT(2)), !!(pData->aCSR[3] & BIT(3)), !!(pData->aCSR[3] & BIT(4)), CSR_LAPPEN(pData),
     
    34633463
    34643464    pHlp->pfnPrintf(pHlp,
    3465                     "CSR4=%04RX32: JABM=%d JAB=%d TXSTRM=%d TXSTRT=%d RCVCOOM=%d RCVCCO=%d UINT=%d UINTCMD=%d\n"
    3466                     "            MFCOM=%d MFCO=%d ASTRP_RCV=%d APAD_XMT=%d DPOLL=%d TIMER=%d EMAPLUS=%d EN124=%d\n",
     3465                    "CSR4=%#06x: JABM=%d JAB=%d TXSTRM=%d TXSTRT=%d RCVCOOM=%d RCVCCO=%d UINT=%d UINTCMD=%d\n"
     3466                    "              MFCOM=%d MFCO=%d ASTRP_RCV=%d APAD_XMT=%d DPOLL=%d TIMER=%d EMAPLUS=%d EN124=%d\n",
    34673467                    pData->aCSR[4],
    34683468                    !!(pData->aCSR[4] & BIT( 0)), !!(pData->aCSR[4] & BIT( 1)), !!(pData->aCSR[4] & BIT( 2)), !!(pData->aCSR[4] & BIT( 3)),
     
    34723472
    34733473    pHlp->pfnPrintf(pHlp,
    3474                     "CSR5=%04RX32:\n",
     3474                    "CSR5=%#06x:\n",
    34753475                    pData->aCSR[5]);
    34763476
    34773477    pHlp->pfnPrintf(pHlp,
    3478                     "CSR6=%04RX32: RLEN=%03x* TLEN=%03x* [* encoded]\n",
     3478                    "CSR6=%#06x: RLEN=%#x* TLEN=%#x* [* encoded]\n",
    34793479                    pData->aCSR[6],
    34803480                    (pData->aCSR[6] >> 8) & 0xf, (pData->aCSR[6] >> 12) & 0xf);
    34813481
    34823482    pHlp->pfnPrintf(pHlp,
    3483                     "CSR8..11=%04RX32,%04RX32,%04RX32,%04RX32: LADRF=%016RX64\n",
     3483                    "CSR8..11=%#06x,%#06x,%#06x,%#06x: LADRF=%#018llx\n",
    34843484                    pData->aCSR[8], pData->aCSR[9], pData->aCSR[10], pData->aCSR[11],
    34853485                      (uint64_t)(pData->aCSR[ 8] & 0xffff)
     
    34893489
    34903490    pHlp->pfnPrintf(pHlp,
    3491                     "CSR12..14=%04RX32,%04RX32,%04RX32: PADR=%02x %02x %02x %02x %02x %02x (Current MAC Address)\n",
     3491                    "CSR12..14=%#06x,%#06x,%#06x: PADR=%02x:%02x:%02x:%02x:%02x:%02x (Current MAC Address)\n",
    34923492                    pData->aCSR[12], pData->aCSR[13], pData->aCSR[14],
    34933493                     pData->aCSR[12]       & 0xff,
     
    34993499
    35003500    pHlp->pfnPrintf(pHlp,
    3501                     "CSR15=%04RX32: DXR=%d DTX=%d LOOP=%d DXMTFCS=%d FCOLL=%d DRTY=%d INTL=%d PORTSEL=%d LTR=%d\n"
    3502                     "            MENDECL=%d DAPC=%d DLNKTST=%d DRCVPV=%d DRCVBC=%d PROM=%d\n",
     3501                    "CSR15=%#06x: DXR=%d DTX=%d LOOP=%d DXMTFCS=%d FCOLL=%d DRTY=%d INTL=%d PORTSEL=%d LTR=%d\n"
     3502                    "              MENDECL=%d DAPC=%d DLNKTST=%d DRCVPV=%d DRCVBC=%d PROM=%d\n",
    35033503                    pData->aCSR[15],
    35043504                    !!(pData->aCSR[15] & BIT( 0)), !!(pData->aCSR[15] & BIT( 1)), !!(pData->aCSR[15] & BIT( 2)), !!(pData->aCSR[15] & BIT( 3)),
     
    35083508
    35093509    pHlp->pfnPrintf(pHlp,
    3510                     "CSR46=%04RX32: POLL=%04x (Poll Time Counter)\n",
     3510                    "CSR46=%#06x: POLL=%#06x (Poll Time Counter)\n",
    35113511                    pData->aCSR[46], pData->aCSR[46] & 0xffff);
    35123512
    35133513    pHlp->pfnPrintf(pHlp,
    3514                     "CSR47=%04RX32: POLLINT=%04x (Poll Time Interval)\n",
     3514                    "CSR47=%#06x: POLLINT=%#06x (Poll Time Interval)\n",
    35153515                    pData->aCSR[47], pData->aCSR[47] & 0xffff);
    35163516
    35173517    pHlp->pfnPrintf(pHlp,
    3518                     "CSR58=%04RX32: SWSTYLE=%02x %s SSIZE32=%d CSRPCNET=%d APERRENT=%d\n",
     3518                    "CSR58=%#06x: SWSTYLE=%d %s SSIZE32=%d CSRPCNET=%d APERRENT=%d\n",
    35193519                    pData->aCSR[58],
    35203520                    pData->aCSR[58] & 0x7f,
     
    35643564                            "%04x %RGp:%c%c RBADR=%08RX32 BCNT=%03x MCNT=%03x "
    35653565                            "OWN=%d ERR=%d FRAM=%d OFLO=%d CRC=%d BUFF=%d STP=%d ENP=%d BPE=%d "
    3566                             "PAM=%d LAFM=%d BAM=%d RCC=%02x RPC=%02x ONES=%x ZEROS=%d\n",
     3566                            "PAM=%d LAFM=%d BAM=%d RCC=%02x RPC=%02x ONES=%#x ZEROS=%d\n",
    35673567                            i, GCPhys, i + 1 == CSR_RCVRC(pData) ? '*' : ' ', GCPhys == CSR_CRDA(pData) ? '*' : ' ',
    35683568                            rmd.rmd0.rbadr, 4096 - rmd.rmd1.bcnt, rmd.rmd2.mcnt,
     
    36043604                            "%04x %RGp:%c%c TBADR=%08RX32 BCNT=%03x OWN=%d "
    36053605                            "ERR=%d NOFCS=%d LTINT=%d ONE=%d DEF=%d STP=%d ENP=%d BPE=%d "
    3606                             "BUFF=%d UFLO=%d EXDEF=%d LCOL=%d LCAR=%d RTRY=%d TDR=%03x TRC=%x ONES=%x\n"
     3606                            "BUFF=%d UFLO=%d EXDEF=%d LCOL=%d LCAR=%d RTRY=%d TDR=%03x TRC=%#x ONES=%#x\n"
    36073607                            ,
    36083608                            i, GCPhys, i + 1 == CSR_XMTRC(pData) ? '*' : ' ', GCPhys == CSR_CXDA(pData) ? '*' : ' ',
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette