VirtualBox

Changeset 44541 in vbox


Ignore:
Timestamp:
Feb 5, 2013 1:06:13 PM (12 years ago)
Author:
vboxsync
Message:

DevE1000.cpp: Some more cleanups.

File:
1 edited

Legend:

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

    r44540 r44541  
    187187//#undef DEBUG
    188188
    189 #define INSTANCE(pState) pState->szInstance
    190189#define STATE_TO_DEVINS(pState)           (((E1KSTATE *)pState)->CTX_SUFF(pDevIns))
    191190#define E1K_RELOCATE(p, o) *(RTHCUINTPTR *)&p += o
     
    10031002struct E1kState_st
    10041003{
    1005     char                    szInstance[8];        /**< Instance name, e.g. E1000#1. */
     1004    char                    szPrf[8];                /**< Log prefix, e.g. E1000#1. */
    10061005    PDMIBASE                IBase;
    10071006    PDMINETWORKDOWN         INetworkDown;
     
    15401539
    15411540    E1kLog2(("%s Arming %s timer to fire in %d usec...\n",
    1542              INSTANCE(pState), e1kGetTimerName(pState, pTimer), uExpireIn));
     1541             pState->szPrf, e1kGetTimerName(pState, pTimer), uExpireIn));
    15431542    TMTimerSetMicro(pTimer, uExpireIn);
    15441543}
     
    15531552{
    15541553    E1kLog2(("%s Stopping %s timer...\n",
    1555             INSTANCE(pState), e1kGetTimerName(pState, pTimer)));
     1554            pState->szPrf, e1kGetTimerName(pState, pTimer)));
    15561555    int rc = TMTimerStop(pTimer);
    15571556    if (RT_FAILURE(rc))
    15581557    {
    15591558        E1kLog2(("%s e1kCancelTimer: TMTimerStop() failed with %Rrc\n",
    1560                 INSTANCE(pState), rc));
     1559                pState->szPrf, rc));
    15611560    }
    15621561}
     
    15891588    {
    15901589        STAM_COUNTER_INC(&pState->StatRxOverflowWakeup);
    1591         E1kLog(("%s Waking up Out-of-RX-space semaphore\n",  INSTANCE(pState)));
     1590        E1kLog(("%s Waking up Out-of-RX-space semaphore\n",  pState->szPrf));
    15921591        RTSemEventSignal(pState->hEventMoreRxDescAvail);
    15931592    }
     
    16011600static void e1kHardReset(E1KSTATE *pState)
    16021601{
    1603     E1kLog(("%s Hard reset triggered\n", INSTANCE(pState)));
     1602    E1kLog(("%s Hard reset triggered\n", pState->szPrf));
    16041603    memset(pState->auRegs,        0, sizeof(pState->auRegs));
    16051604    memset(pState->aRecAddr.au32, 0, sizeof(pState->aRecAddr.au32));
     
    16881687    {
    16891688        E1kLog(("%s --- %s packet #%d: ---\n",
    1690                 INSTANCE(pState), cszText, ++pState->u32PktNo));
     1689                pState->szPrf, cszText, ++pState->u32PktNo));
    16911690        E1kLog3(("%.*Rhxd\n", cb, cpPacket));
    16921691        e1kCsLeave(pState);
     
    17251724static void e1kPrintRDesc(E1KSTATE* pState, E1KRXDESC* pDesc)
    17261725{
    1727     E1kLog2(("%s <-- Receive Descriptor (%d bytes):\n", INSTANCE(pState), pDesc->u16Length));
     1726    E1kLog2(("%s <-- Receive Descriptor (%d bytes):\n", pState->szPrf, pDesc->u16Length));
    17281727    E1kLog2(("        Address=%16LX Length=%04X Csum=%04X\n",
    17291728             pDesc->u64BufAddr, pDesc->u16Length, pDesc->u16Checksum));
     
    17641763        case E1K_DTYP_CONTEXT:
    17651764            E1kLogX(uLevel, ("%s %s Context Transmit Descriptor %s\n",
    1766                     INSTANCE(pState), cszDir, cszDir));
     1765                    pState->szPrf, cszDir, cszDir));
    17671766            E1kLogX(uLevel, ("        IPCSS=%02X IPCSO=%02X IPCSE=%04X TUCSS=%02X TUCSO=%02X TUCSE=%04X\n",
    17681767                    pDesc->context.ip.u8CSS, pDesc->context.ip.u8CSO, pDesc->context.ip.u16CSE,
     
    17811780        case E1K_DTYP_DATA:
    17821781            E1kLogX(uLevel, ("%s %s Data Transmit Descriptor (%d bytes) %s\n",
    1783                     INSTANCE(pState), cszDir, pDesc->data.cmd.u20DTALEN, cszDir));
     1782                    pState->szPrf, cszDir, pDesc->data.cmd.u20DTALEN, cszDir));
    17841783            E1kLogX(uLevel, ("        Address=%16LX DTALEN=%05X\n",
    17851784                    pDesc->data.u64BufAddr,
     
    18041803        case E1K_DTYP_LEGACY:
    18051804            E1kLogX(uLevel, ("%s %s Legacy Transmit Descriptor (%d bytes) %s\n",
    1806                     INSTANCE(pState), cszDir, pDesc->legacy.cmd.u16Length, cszDir));
     1805                    pState->szPrf, cszDir, pDesc->legacy.cmd.u16Length, cszDir));
    18071806            E1kLogX(uLevel, ("        Address=%16LX DTALEN=%05X\n",
    18081807                    pDesc->data.u64BufAddr,
     
    18271826        default:
    18281827            E1kLog(("%s %s Invalid Transmit Descriptor %s\n",
    1829                     INSTANCE(pState), cszDir, cszDir));
     1828                    pState->szPrf, cszDir, cszDir));
    18301829            break;
    18311830    }
     
    18531852            pState->iStatIntLostOne = 1;
    18541853            E1kLog2(("%s e1kRaiseInterrupt: Delayed. ICR=%08x\n",
    1855                     INSTANCE(pState), ICR));
     1854                    pState->szPrf, ICR));
    18561855#define E1K_LOST_IRQ_THRSLD 20
    18571856//#define E1K_LOST_IRQ_THRSLD 200000000
     
    18591858            {
    18601859                E1kLog2(("%s WARNING! Disabling delayed interrupt logic: delayed=%d, delivered=%d\n",
    1861                         INSTANCE(pState), pState->uStatIntDly, pState->uStatIntLate));
     1860                        pState->szPrf, pState->uStatIntDly, pState->uStatIntLate));
    18621861                pState->fIntMaskUsed = false;
    18631862                pState->uStatDisDly++;
     
    18701869            E1K_INC_ISTAT_CNT(pState->uStatIntSkip);
    18711870            E1kLog2(("%s e1kRaiseInterrupt: Already raised, skipped. ICR&IMS=%08x\n",
    1872                     INSTANCE(pState), ICR & IMS));
     1871                    pState->szPrf, ICR & IMS));
    18731872        }
    18741873        else
     
    18781877            /* interrupts/sec = 1 / (256 * 10E-9 * ITR) */
    18791878            E1kLog2(("%s e1kRaiseInterrupt: tstamp - pState->u64AckedAt = %d, ITR * 256 = %d\n",
    1880                         INSTANCE(pState), (uint32_t)(tstamp - pState->u64AckedAt), ITR * 256));
     1879                        pState->szPrf, (uint32_t)(tstamp - pState->u64AckedAt), ITR * 256));
    18811880            //if (!!ITR && pState->fIntMaskUsed && tstamp - pState->u64AckedAt < ITR * 256)
    18821881            if (!!ITR && tstamp - pState->u64AckedAt < ITR * 256 && !(ICR & ICR_RXT0))
     
    18841883                E1K_INC_ISTAT_CNT(pState->uStatIntEarly);
    18851884                E1kLog2(("%s e1kRaiseInterrupt: Too early to raise again: %d ns < %d ns.\n",
    1886                         INSTANCE(pState), (uint32_t)(tstamp - pState->u64AckedAt), ITR * 256));
     1885                        pState->szPrf, (uint32_t)(tstamp - pState->u64AckedAt), ITR * 256));
    18871886            }
    18881887            else
     
    19021901                PDMDevHlpPCISetIrq(pState->CTX_SUFF(pDevIns), 0, 1);
    19031902                E1kLog(("%s e1kRaiseInterrupt: Raised. ICR&IMS=%08x\n",
    1904                         INSTANCE(pState), ICR & IMS));
     1903                        pState->szPrf, ICR & IMS));
    19051904            }
    19061905        }
     
    19101909        E1K_INC_ISTAT_CNT(pState->uStatIntMasked);
    19111910        E1kLog2(("%s e1kRaiseInterrupt: Not raising, ICR=%08x, IMS=%08x\n",
    1912                 INSTANCE(pState), ICR, IMS));
     1911                pState->szPrf, ICR, IMS));
    19131912    }
    19141913    e1kCsLeave(pState);
     
    19611960        E1kLogRel(("E1000: low on RX descriptors, RDH=%x RDT=%x len=%x threshold=%x\n", RDH, RDT, uRQueueLen, uMinRQThreshold));
    19621961        E1kLog2(("%s Low on RX descriptors, RDH=%x RDT=%x len=%x threshold=%x, raise an interrupt\n",
    1963                  INSTANCE(pState), RDH, RDT, uRQueueLen, uMinRQThreshold));
     1962                 pState->szPrf, RDH, RDT, uRQueueLen, uMinRQThreshold));
    19641963        E1K_INC_ISTAT_CNT(pState->uStatIntRXDMT0);
    19651964        e1kRaiseInterrupt(pState, VERR_SEM_BUSY, ICR_RXDMT0);
    19661965    }
    19671966    E1kLog2(("%s e1kAdvanceRDH: at exit RDH=%x RDT=%x len=%x\n",
    1968              INSTANCE(pState), RDH, RDT, uRQueueLen));
     1967             pState->szPrf, RDH, RDT, uRQueueLen));
    19691968    //e1kCsLeave(pState);
    19701969}
     
    20252024    E1kLog3(("%s e1kRxDPrefetch: nDescsAvailable=%u nDescsToFetch=%u "
    20262025             "nDescsTotal=%u nFirstNotLoaded=0x%x nDescsInSingleRead=%u\n",
    2027              INSTANCE(pState), nDescsAvailable, nDescsToFetch, nDescsTotal,
     2026             pState->szPrf, nDescsAvailable, nDescsToFetch, nDescsTotal,
    20282027             nFirstNotLoaded, nDescsInSingleRead));
    20292028    if (nDescsToFetch == 0)
     
    20382037    // {
    20392038    //     pState->aRxDescAddr[i] = addrBase + (nFirstNotLoaded + i - pState->nRxDFetched) * sizeof(E1KRXDESC);
    2040     //     E1kLog3(("%s aRxDescAddr[%d] = %p\n", INSTANCE(pState), i, pState->aRxDescAddr[i]));
     2039    //     E1kLog3(("%s aRxDescAddr[%d] = %p\n", pState->szPrf, i, pState->aRxDescAddr[i]));
    20412040    // }
    20422041    E1kLog3(("%s Fetched %u RX descriptors at %08x%08x(0x%x), RDLEN=%08x, RDH=%08x, RDT=%08x\n",
    2043              INSTANCE(pState), nDescsInSingleRead,
     2042             pState->szPrf, nDescsInSingleRead,
    20442043             RDBAH, RDBAL + RDH * sizeof(E1KRXDESC),
    20452044             nFirstNotLoaded, RDLEN, RDH, RDT));
     
    20542053        // {
    20552054        //     pState->aRxDescAddr[i] = addrBase + j * sizeof(E1KRXDESC);
    2056         //     E1kLog3(("%s aRxDescAddr[%d] = %p\n", INSTANCE(pState), i, pState->aRxDescAddr[i]));
     2055        //     E1kLog3(("%s aRxDescAddr[%d] = %p\n", pState->szPrf, i, pState->aRxDescAddr[i]));
    20572056        // }
    20582057        E1kLog3(("%s Fetched %u RX descriptors at %08x%08x\n",
    2059                  INSTANCE(pState), nDescsToFetch - nDescsInSingleRead,
     2058                 pState->szPrf, nDescsToFetch - nDescsInSingleRead,
    20602059                 RDBAH, RDBAL));
    20612060    }
     
    21252124    STAM_PROFILE_ADV_START(&pState->StatReceiveStore, a);
    21262125    E1kLog2(("%s e1kStoreRxFragment: store fragment of %04X at %016LX, EOP=%d\n",
    2127              INSTANCE(pState), cb, pDesc->u64BufAddr, pDesc->status.fEOP));
     2126             pState->szPrf, cb, pDesc->u64BufAddr, pDesc->status.fEOP));
    21282127    PDMDevHlpPhysWrite(pState->CTX_SUFF(pDevIns), pDesc->u64BufAddr, pvBuf, cb);
    21292128    pDesc->u16Length = (uint16_t)cb;                        Assert(pDesc->u16Length == cb);
     
    21472146{
    21482147    STAM_PROFILE_ADV_START(&pState->StatReceiveStore, a);
    2149     E1kLog2(("%s e1kStoreRxFragment: store fragment of %04X at %016LX, EOP=%d\n", pState->szInstance, cb, pDesc->u64BufAddr, pDesc->status.fEOP));
     2148    E1kLog2(("%s e1kStoreRxFragment: store fragment of %04X at %016LX, EOP=%d\n", pState->szPrf, cb, pDesc->u64BufAddr, pDesc->status.fEOP));
    21502149    PDMDevHlpPhysWrite(pState->CTX_SUFF(pDevIns), pDesc->u64BufAddr, pvBuf, cb);
    21512150    pDesc->u16Length = (uint16_t)cb;                        Assert(pDesc->u16Length == cb);
     
    21562155    /* Advance head */
    21572156    e1kAdvanceRDH(pState);
    2158     //E1kLog2(("%s e1kStoreRxFragment: EOP=%d RDTR=%08X RADV=%08X\n", INSTANCE(pState), pDesc->fEOP, RDTR, RADV));
     2157    //E1kLog2(("%s e1kStoreRxFragment: EOP=%d RDTR=%08X RADV=%08X\n", pState->szPrf, pDesc->fEOP, RDTR, RADV));
    21592158    if (pDesc->status.fEOP)
    21602159    {
     
    22292228    uint16_t uEtherType = ntohs(*(uint16_t*)(pFrame + 12));
    22302229
    2231     E1kLog2(("%s e1kRxChecksumOffload: EtherType=%x\n", INSTANCE(pState), uEtherType));
     2230    E1kLog2(("%s e1kRxChecksumOffload: EtherType=%x\n", pState->szPrf, uEtherType));
    22322231
    22332232    switch (uEtherType)
     
    22852284    Assert(cb > 16);
    22862285    size_t cbMax = ((RCTL & RCTL_LPE) ? E1K_MAX_RX_PKT_SIZE - 4 : 1518) - (status.fVP ? 0 : 4);
    2287     E1kLog3(("%s Max RX packet size is %u\n", INSTANCE(pState), cbMax));
     2286    E1kLog3(("%s Max RX packet size is %u\n", pState->szPrf, cbMax));
    22882287    if (status.fVP)
    22892288    {
     
    22972296            cb -= 4;
    22982297            E1kLog3(("%s Stripped tag for VLAN %u (cb=%u)\n",
    2299                      INSTANCE(pState), status.u16Special, cb));
     2298                     pState->szPrf, status.u16Special, cb));
    23002299        }
    23012300        else
     
    23222321        cb += sizeof(uint32_t);
    23232322        STAM_PROFILE_ADV_STOP(&pState->StatReceiveCRC, a);
    2324         E1kLog3(("%s Added FCS (cb=%u)\n", INSTANCE(pState), cb));
     2323        E1kLog3(("%s Added FCS (cb=%u)\n", pState->szPrf, cb));
    23252324    }
    23262325    /* Compute checksum of complete packet */
     
    23612360            E1kLog(("%s Out of receive buffers, dropping the packet "
    23622361                    "(cb=%u, in_cache=%u, RDH=%x RDT=%x)\n",
    2363                     INSTANCE(pState), cb, e1kRxDInCache(pState), RDH, RDT));
     2362                    pState->szPrf, cb, e1kRxDInCache(pState), RDH, RDT));
    23642363            break;
    23652364        }
     
    23682367    {
    23692368        E1kLog(("%s Out of receive buffers, dropping the packet\n",
    2370                 INSTANCE(pState)));
     2369                pState->szPrf));
    23712370    }
    23722371    /* Store the packet to receive buffers */
     
    24372436
    24382437    if (cb > 0)
    2439         E1kLog(("%s Out of receive buffers, dropping %u bytes", INSTANCE(pState), cb));
     2438        E1kLog(("%s Out of receive buffers, dropping %u bytes", pState->szPrf, cb));
    24402439
    24412440    pState->led.Actual.s.fReading = 0;
     
    24802479{
    24812480    E1kLog(("%s Will bring up the link in %d seconds...\n",
    2482             INSTANCE(pState), pState->cMsLinkUpDelay / 1000));
     2481            pState->szPrf, pState->cMsLinkUpDelay / 1000));
    24832482    e1kArmTimer(pState, pState->CTX_SUFF(pLUTimer), pState->cMsLinkUpDelay * 1000);
    24842483}
     
    25002499{
    25012500    E1kLog(("%s e1kRegReadCTRL: mdio dir=%s mdc dir=%s mdc=%d\n",
    2502             INSTANCE(pState), (CTRL & CTRL_MDIO_DIR)?"OUT":"IN ",
     2501            pState->szPrf, (CTRL & CTRL_MDIO_DIR)?"OUT":"IN ",
    25032502            (CTRL & CTRL_MDC_DIR)?"OUT":"IN ", !!(CTRL & CTRL_MDC)));
    25042503    if ((CTRL & CTRL_MDIO_DIR) == 0 && (CTRL & CTRL_MDC))
     
    25102509            *pu32Value = CTRL & ~CTRL_MDIO;
    25112510        E1kLog(("%s e1kRegReadCTRL: Phy::readMDIO(%d)\n",
    2512                 INSTANCE(pState), !!(*pu32Value & CTRL_MDIO)));
     2511                pState->szPrf, !!(*pu32Value & CTRL_MDIO)));
    25132512    }
    25142513    else
     
    25622561        if (value & CTRL_VME)
    25632562        {
    2564             E1kLog(("%s VLAN Mode Enabled\n", INSTANCE(pState)));
     2563            E1kLog(("%s VLAN Mode Enabled\n", pState->szPrf));
    25652564        }
    25662565        E1kLog(("%s e1kRegWriteCTRL: mdio dir=%s mdc dir=%s mdc=%s mdio=%d\n",
    2567                 INSTANCE(pState), (value & CTRL_MDIO_DIR)?"OUT":"IN ",
     2566                pState->szPrf, (value & CTRL_MDIO_DIR)?"OUT":"IN ",
    25682567                (value & CTRL_MDC_DIR)?"OUT":"IN ", (value & CTRL_MDC)?"HIGH":"LOW ", !!(value & CTRL_MDIO)));
    25692568        if (value & CTRL_MDC)
     
    25712570            if (value & CTRL_MDIO_DIR)
    25722571            {
    2573                 E1kLog(("%s e1kRegWriteCTRL: Phy::writeMDIO(%d)\n", INSTANCE(pState), !!(value & CTRL_MDIO)));
     2572                E1kLog(("%s e1kRegWriteCTRL: Phy::writeMDIO(%d)\n", pState->szPrf, !!(value & CTRL_MDIO)));
    25742573                /* MDIO direction pin is set to output and MDC is high, write MDIO pin value to PHY */
    25752574                Phy::writeMDIO(&pState->phy, !!(value & CTRL_MDIO));
     
    25822581                    value &= ~CTRL_MDIO;
    25832582                E1kLog(("%s e1kRegWriteCTRL: Phy::readMDIO(%d)\n",
    2584                         INSTANCE(pState), !!(value & CTRL_MDIO)));
     2583                        pState->szPrf, !!(value & CTRL_MDIO)));
    25852584            }
    25862585        }
     
    27172716    {
    27182717        E1kLog(("%s ERROR! Interrupt at the end of an MDI cycle is not supported yet.\n",
    2719                 INSTANCE(pState)));
     2718                pState->szPrf));
    27202719    }
    27212720    else if (value & MDIC_READY)
    27222721    {
    27232722        E1kLog(("%s ERROR! Ready bit is not reset by software during write operation.\n",
    2724                 INSTANCE(pState)));
     2723                pState->szPrf));
    27252724    }
    27262725    else if (GET_BITS_V(value, MDIC, PHY) != 1)
    27272726    {
    27282727        E1kLog(("%s ERROR! Access to invalid PHY detected, phy=%d.\n",
    2729                 INSTANCE(pState), GET_BITS_V(value, MDIC, PHY)));
     2728                pState->szPrf, GET_BITS_V(value, MDIC, PHY)));
    27302729    }
    27312730    else
     
    28022801                 */
    28032802                E1kLogRel(("E1000: irq lowered, icr=0x%x\n", ICR));
    2804                 E1kLog(("%s e1kRegReadICR: Lowered IRQ (%08x)\n", INSTANCE(pState), ICR));
     2803                E1kLog(("%s e1kRegReadICR: Lowered IRQ (%08x)\n", pState->szPrf, ICR));
    28052804                /* Clear all pending interrupts */
    28062805                ICR = 0;
     
    28192818                 * just before re-enabling interrupts
    28202819                 */
    2821                 E1kLog(("%s e1kRegReadICR: Suppressing auto-clear due to disabled interrupts (%08x)\n", INSTANCE(pState), ICR));
     2820                E1kLog(("%s e1kRegReadICR: Suppressing auto-clear due to disabled interrupts (%08x)\n", pState->szPrf, ICR));
    28222821            }
    28232822        }
     
    28632862    IMS |= value;
    28642863    E1kLogRel(("E1000: irq enabled, RDH=%x RDT=%x TDH=%x TDT=%x\n", RDH, RDT, TDH, TDT));
    2865     E1kLog(("%s e1kRegWriteIMS: IRQ enabled\n", INSTANCE(pState)));
     2864    E1kLog(("%s e1kRegWriteIMS: IRQ enabled\n", pState->szPrf));
    28662865    /* Mask changes, we need to raise pending interrupts. */
    28672866    if ((ICR & IMS) && !pState->fLocked)
    28682867    {
    28692868        E1kLog2(("%s e1kRegWriteIMS: IRQ pending (%08x), arming late int timer...\n",
    2870                  INSTANCE(pState), ICR));
     2869                 pState->szPrf, ICR));
    28712870        /* Raising an interrupt immediately causes win7 to hang upon NIC reconfiguration, see @bugref{5023}. */
    28722871        TMTimerSet(pState->CTX_SUFF(pIntTimer), TMTimerFromNano(pState->CTX_SUFF(pIntTimer), ITR * 256) +
     
    29072906        PDMDevHlpPCISetIrq(pState->CTX_SUFF(pDevIns), 0, 0);
    29082907        pState->fIntRaised = false;
    2909         E1kLog(("%s e1kRegWriteIMC: Lowered IRQ: ICR=%08x\n", INSTANCE(pState), ICR));
     2908        E1kLog(("%s e1kRegWriteIMC: Lowered IRQ: ICR=%08x\n", pState->szPrf, ICR));
    29102909    }
    29112910    IMS &= ~value;
    2912     E1kLog(("%s e1kRegWriteIMC: IRQ disabled\n", INSTANCE(pState)));
     2911    E1kLog(("%s e1kRegWriteIMC: IRQ disabled\n", pState->szPrf));
    29132912    e1kCsLeave(pState);
    29142913
     
    29472946    if (cbRxBuf != pState->u16RxBSize)
    29482947        E1kLog2(("%s e1kRegWriteRCTL: Setting receive buffer size to %d (old %d)\n",
    2949                  INSTANCE(pState), cbRxBuf, pState->u16RxBSize));
     2948                 pState->szPrf, cbRxBuf, pState->u16RxBSize));
    29502949    pState->u16RxBSize = cbRxBuf;
    29512950
     
    30002999    if (RT_LIKELY(rc == VINF_SUCCESS))
    30013000    {
    3002         E1kLog(("%s e1kRegWriteRDT\n",  INSTANCE(pState)));
     3001        E1kLog(("%s e1kRegWriteRDT\n",  pState->szPrf));
    30033002        rc = e1kRegWriteDefault(pState, offset, index, value);
    30043003#ifdef E1K_WITH_RXD_CACHE
     
    32443243        return;
    32453244
    3246     E1kLog(("%s e1kLinkUpTimer: Link is up\n", INSTANCE(pState)));
     3245    E1kLog(("%s e1kLinkUpTimer: Link is up\n", pState->szPrf));
    32473246    STATUS |= STATUS_LU;
    32483247    Phy::setLinkStatus(&pState->phy, true);
     
    35503549        }
    35513550        E1kLog3(("%s Allocated buffer for TX packet: cb=%u %s%s\n",
    3552                  INSTANCE(pState), pState->cbTxAlloc,
     3551                 pState->szPrf, pState->cbTxAlloc,
    35533552                 pState->fVTag ? "VLAN " : "",
    35543553                 pState->fGSO ? "GSO " : ""));
     
    36293628    E1kLog3(("%s e1kTxDLoadMore: nDescsAvailable=%u nDescsToFetch=%u "
    36303629             "nDescsTotal=%u nFirstNotLoaded=0x%x nDescsInSingleRead=%u\n",
    3631              INSTANCE(pState), nDescsAvailable, nDescsToFetch, nDescsTotal,
     3630             pState->szPrf, nDescsAvailable, nDescsToFetch, nDescsTotal,
    36323631             nFirstNotLoaded, nDescsInSingleRead));
    36333632    if (nDescsToFetch == 0)
     
    36383637                      pFirstEmptyDesc, nDescsInSingleRead * sizeof(E1KTXDESC));
    36393638    E1kLog3(("%s Fetched %u TX descriptors at %08x%08x(0x%x), TDLEN=%08x, TDH=%08x, TDT=%08x\n",
    3640              INSTANCE(pState), nDescsInSingleRead,
     3639             pState->szPrf, nDescsInSingleRead,
    36413640             TDBAH, TDBAL + TDH * sizeof(E1KTXDESC),
    36423641             nFirstNotLoaded, TDLEN, TDH, TDT));
     
    36483647                          (nDescsToFetch - nDescsInSingleRead) * sizeof(E1KTXDESC));
    36493648        E1kLog3(("%s Fetched %u TX descriptors at %08x%08x\n",
    3650                  INSTANCE(pState), nDescsToFetch - nDescsInSingleRead,
     3649                 pState->szPrf, nDescsToFetch - nDescsInSingleRead,
    36513650                 TDBAH, TDBAL));
    36523651    }
     
    37323731    {
    37333732        E1kLog3(("%s Inserting VLAN tag %08x\n",
    3734             INSTANCE(pState), RT_BE2H_U16(VET) | (RT_BE2H_U16(pState->u16VTagTCI) << 16)));
     3733            pState->szPrf, RT_BE2H_U16(VET) | (RT_BE2H_U16(pState->u16VTagTCI) << 16)));
    37353734        memmove((uint8_t*)pSg->aSegs[0].pvSeg + 16, (uint8_t*)pSg->aSegs[0].pvSeg + 12, cbFrame - 12);
    37363735        *((uint32_t*)pSg->aSegs[0].pvSeg + 3) = RT_BE2H_U16(VET) | (RT_BE2H_U16(pState->u16VTagTCI) << 16);
     
    37433742            "%.*Rhxd\n"
    37443743            "%s < < < < < < < < < < < < <  End of dump > > > > > > > > > > > >\n",
    3745             INSTANCE(pState), cbFrame, pSg->aSegs[0].pvSeg, INSTANCE(pState)));*/
     3744            pState->szPrf, cbFrame, pSg->aSegs[0].pvSeg, pState->szPrf));*/
    37463745
    37473746    /* Update the stats */
     
    38373836    {
    38383837        E1kLog2(("%s css(%X) is greater than packet length-1(%X), checksum is not inserted\n",
    3839                  INSTANCE(pState), cso, u16PktLen));
     3838                 pState->szPrf, cso, u16PktLen));
    38403839        return;
    38413840    }
     
    38443843    {
    38453844        E1kLog2(("%s cso(%X) is greater than packet length-2(%X), checksum is not inserted\n",
    3846                  INSTANCE(pState), cso, u16PktLen));
     3845                 pState->szPrf, cso, u16PktLen));
    38473846        return;
    38483847    }
     
    38513850        cse = u16PktLen - 1;
    38523851    uint16_t u16ChkSum = e1kCSum16(pPkt + css, cse - css + 1);
    3853     E1kLog2(("%s Inserting csum: %04X at %02X, old value: %04X\n", INSTANCE(pState),
     3852    E1kLog2(("%s Inserting csum: %04X at %02X, old value: %04X\n", pState->szPrf,
    38543853             u16ChkSum, cso, *(uint16_t*)(pPkt + cso)));
    38553854    *(uint16_t*)(pPkt + cso) = u16ChkSum;
     
    38813880
    38823881    E1kLog3(("%s e1kFallbackAddSegment: Length=%x, remaining payload=%x, header=%x, send=%RTbool\n",
    3883              INSTANCE(pState), u16Len, pState->u32PayRemain, pState->u16HdrRemain, fSend));
     3882             pState->szPrf, u16Len, pState->u32PayRemain, pState->u16HdrRemain, fSend));
    38843883    Assert(pState->u32PayRemain + pState->u16HdrRemain > 0);
    38853884
     
    38893888            "%.*Rhxd\n"
    38903889            "%s --- End of dump ---\n",
    3891             INSTANCE(pState), u16Len, pState->aTxPacketFallback + pState->u16TxPktLen, INSTANCE(pState)));
     3890            pState->szPrf, u16Len, pState->aTxPacketFallback + pState->u16TxPktLen, pState->szPrf));
    38923891    pState->u16TxPktLen += u16Len;
    38933892    E1kLog3(("%s e1kFallbackAddSegment: pState->u16TxPktLen=%x\n",
    3894             INSTANCE(pState), pState->u16TxPktLen));
     3893            pState->szPrf, pState->u16TxPktLen));
    38953894    if (pState->u16HdrRemain > 0)
    38963895    {
     
    39123911            pState->u16HdrRemain -= u16Len;
    39133912            E1kLog3(("%s e1kFallbackAddSegment: Header is still incomplete, 0x%x bytes remain.\n",
    3914                     INSTANCE(pState), pState->u16HdrRemain));
     3913                    pState->szPrf, pState->u16HdrRemain));
    39153914            return;
    39163915        }
     
    39253924        pIpHdr->total_len = htons(pState->u16TxPktLen - pState->contextTSE.ip.u8CSS);
    39263925        E1kLog3(("%s e1kFallbackAddSegment: End of packet, pIpHdr->total_len=%x\n",
    3927                 INSTANCE(pState), ntohs(pIpHdr->total_len)));
     3926                pState->szPrf, ntohs(pIpHdr->total_len)));
    39283927        /* Update IP Checksum */
    39293928        pIpHdr->chksum = 0;
     
    39883987
    39893988    E1kLog3(("%s e1kFallbackAddSegment: Length=%x, remaining payload=%x, header=%x, send=%RTbool\n",
    3990              INSTANCE(pState), u16Len, pState->u32PayRemain, pState->u16HdrRemain, fSend));
     3989             pState->szPrf, u16Len, pState->u32PayRemain, pState->u16HdrRemain, fSend));
    39913990    Assert(pState->u32PayRemain + pState->u16HdrRemain > 0);
    39923991
     
    39963995            "%.*Rhxd\n"
    39973996            "%s --- End of dump ---\n",
    3998             INSTANCE(pState), u16Len, pState->aTxPacketFallback + pState->u16TxPktLen, INSTANCE(pState)));
     3997            pState->szPrf, u16Len, pState->aTxPacketFallback + pState->u16TxPktLen, pState->szPrf));
    39993998    pState->u16TxPktLen += u16Len;
    40003999    E1kLog3(("%s e1kFallbackAddSegment: pState->u16TxPktLen=%x\n",
    4001             INSTANCE(pState), pState->u16TxPktLen));
     4000            pState->szPrf, pState->u16TxPktLen));
    40024001    if (pState->u16HdrRemain > 0)
    40034002    {
     
    40194018            pState->u16HdrRemain -= u16Len;
    40204019            E1kLog3(("%s e1kFallbackAddSegment: Header is still incomplete, 0x%x bytes remain.\n",
    4021                     INSTANCE(pState), pState->u16HdrRemain));
     4020                    pState->szPrf, pState->u16HdrRemain));
    40224021            return rc;
    40234022        }
     
    40324031        pIpHdr->total_len = htons(pState->u16TxPktLen - pState->contextTSE.ip.u8CSS);
    40334032        E1kLog3(("%s e1kFallbackAddSegment: End of packet, pIpHdr->total_len=%x\n",
    4034                 INSTANCE(pState), ntohs(pIpHdr->total_len)));
     4033                pState->szPrf, ntohs(pIpHdr->total_len)));
    40354034        /* Update IP Checksum */
    40364035        pIpHdr->chksum = 0;
     
    42494248    if (RT_UNLIKELY( !fGso && cbNewPkt > E1K_MAX_TX_PKT_SIZE ))
    42504249    {
    4251         E1kLog(("%s Transmit packet is too large: %u > %u(max)\n", INSTANCE(pThis), cbNewPkt, E1K_MAX_TX_PKT_SIZE));
     4250        E1kLog(("%s Transmit packet is too large: %u > %u(max)\n", pThis->szPrf, cbNewPkt, E1K_MAX_TX_PKT_SIZE));
    42524251        return false;
    42534252    }
    42544253    if (RT_UNLIKELY( fGso && cbNewPkt > pTxSg->cbAvailable ))
    42554254    {
    4256         E1kLog(("%s Transmit packet is too large: %u > %u(max)/GSO\n", INSTANCE(pThis), cbNewPkt, pTxSg->cbAvailable));
     4255        E1kLog(("%s Transmit packet is too large: %u > %u(max)/GSO\n", pThis->szPrf, cbNewPkt, pTxSg->cbAvailable));
    42574256        return false;
    42584257    }
     
    43244323                /* If absolute timer delay is enabled and the timer is not running yet, arm it. */
    43254324                E1kLog2(("%s Checking if TAD timer is running\n",
    4326                          INSTANCE(pState)));
     4325                         pState->szPrf));
    43274326                if (TADV != 0 && !TMTimerIsActive(pState->CTX_SUFF(pTADTimer)))
    43284327                    e1kArmTimer(pState, pState->CTX_SUFF(pTADTimer), TADV);
     
    43324331            {
    43334332                E1kLog2(("%s No IDE set, cancel TAD timer and raise interrupt\n",
    4334                         INSTANCE(pState)));
     4333                        pState->szPrf));
    43354334# ifndef E1K_NO_TAD
    43364335                /* Cancel both timers if armed and fire immediately. */
     
    43944393            }
    43954394            E1kLog2(("%s %s context updated: IP CSS=%02X, IP CSO=%02X, IP CSE=%04X"
    4396                     ", TU CSS=%02X, TU CSO=%02X, TU CSE=%04X\n", INSTANCE(pState),
     4395                    ", TU CSS=%02X, TU CSO=%02X, TU CSE=%04X\n", pState->szPrf,
    43974396                     pDesc->context.dw2.fTSE ? "TSE" : "Normal",
    43984397                     pDesc->context.ip.u8CSS,
     
    44104409            if (pDesc->data.cmd.u20DTALEN == 0 || pDesc->data.u64BufAddr == 0)
    44114410            {
    4412                 E1kLog2(("% Empty data descriptor, skipped.\n", INSTANCE(pState)));
     4411                E1kLog2(("% Empty data descriptor, skipped.\n", pState->szPrf));
    44134412                /** @todo Same as legacy when !TSE. See below. */
    44144413                break;
     
    44404439                pState->fIPcsum  = pDesc->data.dw3.fIXSM;
    44414440                pState->fTCPcsum = pDesc->data.dw3.fTXSM;
    4442                 E1kLog2(("%s Saving checksum flags:%s%s; \n", INSTANCE(pState),
     4441                E1kLog2(("%s Saving checksum flags:%s%s; \n", pState->szPrf,
    44434442                         pState->fIPcsum ? " IP" : "",
    44444443                         pState->fTCPcsum ? " TCP/UDP" : ""));
     
    44544453                else
    44554454                    cbVTag = 4;
    4456                 E1kLog3(("%s About to allocate TX buffer: cbVTag=%u\n", INSTANCE(pState), cbVTag));
     4455                E1kLog3(("%s About to allocate TX buffer: cbVTag=%u\n", pState->szPrf, cbVTag));
    44574456                if (e1kCanDoGso(pState, &pState->GsoCtx, &pDesc->data, &pState->contextTSE))
    44584457                    rc = e1kXmitAllocBuf(pState, pState->contextTSE.dw2.u20PAYLEN + pState->contextTSE.dw3.u8HDRLEN + cbVTag,
     
    44984497                    {
    44994498                        if (fRc)
    4500                            E1kLog(("%s bad GSO/TSE %p or %u < %u\n" , INSTANCE(pState),
     4499                           E1kLog(("%s bad GSO/TSE %p or %u < %u\n" , pState->szPrf,
    45014500                                   pState->CTX_SUFF(pTxSg), pState->CTX_SUFF(pTxSg) ? pState->CTX_SUFF(pTxSg)->cbUsed : 0,
    45024501                                   pState->contextTSE.dw3.u8HDRLEN + pState->contextTSE.dw2.u20PAYLEN));
     
    45474546            if (pDesc->legacy.cmd.u16Length == 0 || pDesc->legacy.u64BufAddr == 0)
    45484547            {
    4549                 E1kLog(("%s Empty legacy descriptor, skipped.\n", INSTANCE(pState)));
     4548                E1kLog(("%s Empty legacy descriptor, skipped.\n", pState->szPrf));
    45504549                /** @todo 3.3.3, Length/Buffer Address: RS set -> write DD when processing. */
    45514550                break;
     
    45614560                else
    45624561                    cbVTag = 4;
    4563                 E1kLog3(("%s About to allocate TX buffer: cbVTag=%u\n", INSTANCE(pState), cbVTag));
     4562                E1kLog3(("%s About to allocate TX buffer: cbVTag=%u\n", pState->szPrf, cbVTag));
    45644563                /** @todo reset status bits? */
    45654564                rc = e1kXmitAllocBuf(pState, pDesc->legacy.cmd.u16Length + cbVTag, pDesc->legacy.cmd.fEOP, false /*fGso*/);
     
    46024601        default:
    46034602            E1kLog(("%s ERROR Unsupported transmit descriptor type: 0x%04x\n",
    4604                     INSTANCE(pState), e1kGetDescType(pDesc)));
     4603                    pState->szPrf, e1kGetDescType(pDesc)));
    46054604            break;
    46064605    }
     
    46534652            if (pDesc->data.cmd.u20DTALEN == 0 || pDesc->data.u64BufAddr == 0)
    46544653            {
    4655                 E1kLog2(("% Empty data descriptor, skipped.\n", INSTANCE(pState)));
     4654                E1kLog2(("% Empty data descriptor, skipped.\n", pState->szPrf));
    46564655            }
    46574656            else
     
    46774676                        {
    46784677                            if (fRc)
    4679                                 E1kLog(("%s bad GSO/TSE %p or %u < %u\n" , INSTANCE(pState),
     4678                                E1kLog(("%s bad GSO/TSE %p or %u < %u\n" , pState->szPrf,
    46804679                                        pState->CTX_SUFF(pTxSg), pState->CTX_SUFF(pTxSg) ? pState->CTX_SUFF(pTxSg)->cbUsed : 0,
    46814680                                        pState->contextTSE.dw3.u8HDRLEN + pState->contextTSE.dw2.u20PAYLEN));
     
    47284727            if (pDesc->legacy.cmd.u16Length == 0 || pDesc->legacy.u64BufAddr == 0)
    47294728            {
    4730                 E1kLog(("%s Empty legacy descriptor, skipped.\n", INSTANCE(pState)));
     4729                E1kLog(("%s Empty legacy descriptor, skipped.\n", pState->szPrf));
    47314730            }
    47324731            else
     
    47664765        default:
    47674766            E1kLog(("%s ERROR Unsupported transmit descriptor type: 0x%04x\n",
    4768                     INSTANCE(pState), e1kGetDescType(pDesc)));
     4767                    pState->szPrf, e1kGetDescType(pDesc)));
    47694768            break;
    47704769    }
     
    47904789    }
    47914790    E1kLog2(("%s %s context updated: IP CSS=%02X, IP CSO=%02X, IP CSE=%04X"
    4792              ", TU CSS=%02X, TU CSO=%02X, TU CSE=%04X\n", INSTANCE(pState),
     4791             ", TU CSS=%02X, TU CSO=%02X, TU CSE=%04X\n", pState->szPrf,
    47934792             pDesc->context.dw2.fTSE ? "TSE" : "Normal",
    47944793             pDesc->context.ip.u8CSS,
     
    48044803{
    48054804    LogFlow(("%s e1kLocateTxPacket: ENTER cbTxAlloc=%d\n",
    4806              INSTANCE(pState), pState->cbTxAlloc));
     4805             pState->szPrf, pState->cbTxAlloc));
    48074806    /* Check if we have located the packet already. */
    48084807    if (pState->cbTxAlloc)
    48094808    {
    48104809        LogFlow(("%s e1kLocateTxPacket: RET true cbTxAlloc=%d\n",
    4811                  INSTANCE(pState), pState->cbTxAlloc));
     4810                 pState->szPrf, pState->cbTxAlloc));
    48124811        return true;
    48134812    }
     
    48814880                pState->cbTxAlloc += 4;
    48824881            LogFlow(("%s e1kLocateTxPacket: RET true cbTxAlloc=%d\n",
    4883                      INSTANCE(pState), pState->cbTxAlloc));
     4882                     pState->szPrf, pState->cbTxAlloc));
    48844883            return true;
    48854884        }
     
    48904889        /* All descriptors were empty, we need to process them as a dummy packet */
    48914890        LogFlow(("%s e1kLocateTxPacket: RET true cbTxAlloc=%d, zero packet!\n",
    4892                  INSTANCE(pState), pState->cbTxAlloc));
     4891                 pState->szPrf, pState->cbTxAlloc));
    48934892        return true;
    48944893    }
    48954894    LogFlow(("%s e1kLocateTxPacket: RET false cbTxAlloc=%d\n",
    4896              INSTANCE(pState), pState->cbTxAlloc));
     4895             pState->szPrf, pState->cbTxAlloc));
    48974896    return false;
    48984897}
     
    49044903
    49054904    LogFlow(("%s e1kXmitPacket: ENTER current=%d fetched=%d\n",
    4906              INSTANCE(pState), pState->iTxDCurrent, pState->nTxDFetched));
     4905             pState->szPrf, pState->iTxDCurrent, pState->nTxDFetched));
    49074906
    49084907    while (pState->iTxDCurrent < pState->nTxDFetched)
     
    49104909        E1KTXDESC *pDesc = &pState->aTxDescriptors[pState->iTxDCurrent];
    49114910        E1kLog3(("%s About to process new TX descriptor at %08x%08x, TDLEN=%08x, TDH=%08x, TDT=%08x\n",
    4912                  INSTANCE(pState), TDBAH, TDBAL + TDH * sizeof(E1KTXDESC), TDLEN, TDH, TDT));
     4911                 pState->szPrf, TDBAH, TDBAL + TDH * sizeof(E1KTXDESC), TDLEN, TDH, TDT));
    49134912        rc = e1kXmitDesc(pState, pDesc, e1kDescAddr(TDBAH, TDBAL, TDH), fOnWorkerThread);
    49144913        if (RT_FAILURE(rc))
     
    49204919        {
    49214920            E1kLog2(("%s Low on transmit descriptors, raise ICR.TXD_LOW, len=%x thresh=%x\n",
    4922                      INSTANCE(pState), e1kGetTxLen(pState), GET_BITS(TXDCTL, LWTHRESH)*8));
     4921                     pState->szPrf, e1kGetTxLen(pState), GET_BITS(TXDCTL, LWTHRESH)*8));
    49234922            e1kRaiseInterrupt(pState, VERR_SEM_BUSY, ICR_TXD_LOW);
    49244923        }
     
    49294928
    49304929    LogFlow(("%s e1kXmitPacket: RET %Rrc current=%d fetched=%d\n",
    4931              INSTANCE(pState), rc, pState->iTxDCurrent, pState->nTxDFetched));
     4930             pState->szPrf, rc, pState->iTxDCurrent, pState->nTxDFetched));
    49324931    return rc;
    49334932}
     
    49744973            E1KTXDESC desc;
    49754974            E1kLog3(("%s About to process new TX descriptor at %08x%08x, TDLEN=%08x, TDH=%08x, TDT=%08x\n",
    4976                      INSTANCE(pState), TDBAH, TDBAL + TDH * sizeof(desc), TDLEN, TDH, TDT));
     4975                     pState->szPrf, TDBAH, TDBAL + TDH * sizeof(desc), TDLEN, TDH, TDT));
    49774976
    49784977            e1kLoadDesc(pState, &desc, ((uint64_t)TDBAH << 32) + TDBAL + TDH * sizeof(desc));
     
    49874986            {
    49884987                E1kLog2(("%s Low on transmit descriptors, raise ICR.TXD_LOW, len=%x thresh=%x\n",
    4989                          INSTANCE(pState), e1kGetTxLen(pState), GET_BITS(TXDCTL, LWTHRESH)*8));
     4988                         pState->szPrf, e1kGetTxLen(pState), GET_BITS(TXDCTL, LWTHRESH)*8));
    49904989                e1kRaiseInterrupt(pState, VERR_SEM_BUSY, ICR_TXD_LOW);
    49914990            }
     
    51035102                LogRel(("%s No complete packets in%s TxD cache! "
    51045103                      "Fetched=%d, current=%d, TX len=%d.\n",
    5105                       INSTANCE(pState),
     5104                      pState->szPrf,
    51065105                      u8Remain == E1K_TXD_CACHE_SIZE ? " full" : "",
    51075106                      pState->nTxDFetched, pState->iTxDCurrent,
     
    51285127                Log4(("%s Incomplete packet at %d. Already fetched %d, "
    51295128                      "%d more are available\n",
    5130                       INSTANCE(pState), pState->iTxDCurrent, u8Remain,
     5129                      pState->szPrf, pState->iTxDCurrent, u8Remain,
    51315130                      e1kGetTxLen(pState) - u8Remain));
    51325131
     
    51505149        {
    51515150            E1kLog2(("%s Out of transmit descriptors, raise ICR.TXD_LOW\n",
    5152                      INSTANCE(pState)));
     5151                     pState->szPrf));
    51535152            e1kRaiseInterrupt(pState, VERR_SEM_BUSY, ICR_TXD_LOW);
    51545153        }
     
    51985197    NOREF(pItem);
    51995198    E1KSTATE *pState = PDMINS_2_DATA(pDevIns, E1KSTATE *);
    5200     E1kLog2(("%s e1kTxQueueConsumer:\n", INSTANCE(pState)));
     5199    E1kLog2(("%s e1kTxQueueConsumer:\n", pState->szPrf));
    52015200
    52025201    int rc = e1kXmitPending(pState, false /*fOnWorkerThread*/);
     
    52345233    /* Process them. */
    52355234    E1kLog2(("%s e1kRegWriteTDT: TDBAL=%08x, TDBAH=%08x, TDLEN=%08x, TDH=%08x, TDT=%08x\n",
    5236             INSTANCE(pState), TDBAL, TDBAH, TDLEN, TDH, TDT));
     5235            pState->szPrf, TDBAL, TDBAH, TDLEN, TDH, TDT));
    52375236
    52385237    /* Ignore TDT writes when the link is down. */
     
    52415240        E1kLogRel(("E1000: TDT write: %d descriptors to process\n", e1kGetTxLen(pState)));
    52425241        E1kLog(("%s e1kRegWriteTDT: %d descriptors to process\n",
    5243                  INSTANCE(pState), e1kGetTxLen(pState)));
     5242                 pState->szPrf, e1kGetTxLen(pState)));
    52445243
    52455244        /* Transmit pending packets if possible, defer it if we cannot do it
     
    54055404{
    54065405    E1kLog(("%s At %08X read (00000000) attempt from unimplemented register %s (%s)\n",
    5407             INSTANCE(pState), offset, s_e1kRegMap[index].abbrev, s_e1kRegMap[index].name));
     5406            pState->szPrf, offset, s_e1kRegMap[index].abbrev, s_e1kRegMap[index].name));
    54085407    *pu32Value = 0;
    54095408
     
    54775476{
    54785477    E1kLog(("%s At %08X write attempt (%08X) to  unimplemented register %s (%s)\n",
    5479             INSTANCE(pState), offset, value, s_e1kRegMap[index].abbrev, s_e1kRegMap[index].name));
     5478            pState->szPrf, offset, value, s_e1kRegMap[index].abbrev, s_e1kRegMap[index].name));
    54805479
    54815480    return VINF_SUCCESS;
     
    55515550    int         rc     = VINF_SUCCESS;
    55525551    int         index  = e1kRegLookup(pState, uOffset);
    5553     const char *szInst = INSTANCE(pState);
     5552    const char *szInst = pState->szPrf;
    55545553#ifdef DEBUG
    55555554    char        buf[9];
     
    56515650    {
    56525651        E1kLog(("%s e1kRegWrite: Spec violation: unsupported op size: offset=%#10x cb=%#10x, ignored.\n",
    5653                 INSTANCE(pState), offReg, cb));
     5652                pState->szPrf, offReg, cb));
    56545653        return VINF_SUCCESS;
    56555654    }
     
    56575656    {
    56585657        E1kLog(("%s e1kRegWrite: Spec violation: misaligned offset: %#10x cb=%#10x, ignored.\n",
    5659                 INSTANCE(pState), offReg, cb));
     5658                pState->szPrf, offReg, cb));
    56605659        return VINF_SUCCESS;
    56615660    }
     
    56705669             */
    56715670            E1kLog2(("%s At %08X write          %08X  to  %s (%s)\n",
    5672                      INSTANCE(pState), offReg, u32, s_e1kRegMap[index].abbrev, s_e1kRegMap[index].name));
     5671                     pState->szPrf, offReg, u32, s_e1kRegMap[index].abbrev, s_e1kRegMap[index].name));
    56735672            //rc = e1kCsEnter(pState, VERR_SEM_BUSY, RT_SRC_POS);
    56745673            if (RT_UNLIKELY(rc != VINF_SUCCESS))
     
    56835682        {
    56845683            E1kLog(("%s At %08X write attempt (%08X) to  read-only register %s (%s)\n",
    5685                     INSTANCE(pState), offReg, u32, s_e1kRegMap[index].abbrev, s_e1kRegMap[index].name));
     5684                    pState->szPrf, offReg, u32, s_e1kRegMap[index].abbrev, s_e1kRegMap[index].name));
    56865685        }
    56875686    }
     
    56895688    {
    56905689        E1kLog(("%s At %08X write attempt (%08X) to  non-existing register\n",
    5691                 INSTANCE(pState), offReg, u32));
     5690                pState->szPrf, offReg, u32));
    56925691    }
    56935692    return rc;
     
    57725771    E1KSTATE   *pState = PDMINS_2_DATA(pDevIns, E1KSTATE *);
    57735772    int         rc     = VINF_SUCCESS;
    5774     const char *szInst = INSTANCE(pState);
     5773    const char *szInst = pState->szPrf;
    57755774    STAM_PROFILE_ADV_START(&pState->CTX_SUFF_Z(StatIORead), a);
    57765775
     
    58225821    E1KSTATE   *pState = PDMINS_2_DATA(pDevIns, E1KSTATE *);
    58235822    int         rc     = VINF_SUCCESS;
    5824     const char *szInst = INSTANCE(pState);
     5823    const char *szInst = pState->szPrf;
    58255824    STAM_PROFILE_ADV_START(&pState->CTX_SUFF_Z(StatIOWrite), a);
    58265825
     
    58715870    for (int i = 0; i < E1K_NUM_OF_32BIT_REGS; ++i)
    58725871    {
    5873         E1kLog2(("%s %8.8s = %08x\n", INSTANCE(pState),
     5872        E1kLog2(("%s %8.8s = %08x\n", pState->szPrf,
    58745873                s_e1kRegMap[i].abbrev, pState->auRegs[i]));
    58755874    }
    58765875# ifdef E1K_INT_STATS
    5877     LogRel(("%s Interrupt attempts: %d\n", INSTANCE(pState), pState->uStatIntTry));
    5878     LogRel(("%s Interrupts raised : %d\n", INSTANCE(pState), pState->uStatInt));
    5879     LogRel(("%s Interrupts lowered: %d\n", INSTANCE(pState), pState->uStatIntLower));
    5880     LogRel(("%s Interrupts delayed: %d\n", INSTANCE(pState), pState->uStatIntDly));
    5881     LogRel(("%s Disabled delayed:   %d\n", INSTANCE(pState), pState->uStatDisDly));
    5882     LogRel(("%s Interrupts skipped: %d\n", INSTANCE(pState), pState->uStatIntSkip));
    5883     LogRel(("%s Masked interrupts : %d\n", INSTANCE(pState), pState->uStatIntMasked));
    5884     LogRel(("%s Early interrupts  : %d\n", INSTANCE(pState), pState->uStatIntEarly));
    5885     LogRel(("%s Late interrupts   : %d\n", INSTANCE(pState), pState->uStatIntLate));
    5886     LogRel(("%s Lost interrupts   : %d\n", INSTANCE(pState), pState->iStatIntLost));
    5887     LogRel(("%s Interrupts by RX  : %d\n", INSTANCE(pState), pState->uStatIntRx));
    5888     LogRel(("%s Interrupts by TX  : %d\n", INSTANCE(pState), pState->uStatIntTx));
    5889     LogRel(("%s Interrupts by ICS : %d\n", INSTANCE(pState), pState->uStatIntICS));
    5890     LogRel(("%s Interrupts by RDTR: %d\n", INSTANCE(pState), pState->uStatIntRDTR));
    5891     LogRel(("%s Interrupts by RDMT: %d\n", INSTANCE(pState), pState->uStatIntRXDMT0));
    5892     LogRel(("%s Interrupts by TXQE: %d\n", INSTANCE(pState), pState->uStatIntTXQE));
    5893     LogRel(("%s TX int delay asked: %d\n", INSTANCE(pState), pState->uStatTxIDE));
    5894     LogRel(("%s TX delayed:         %d\n", INSTANCE(pState), pState->uStatTxDelayed));
    5895     LogRel(("%s TX delay expired:   %d\n", INSTANCE(pState), pState->uStatTxDelayExp));
    5896     LogRel(("%s TX no report asked: %d\n", INSTANCE(pState), pState->uStatTxNoRS));
    5897     LogRel(("%s TX abs timer expd : %d\n", INSTANCE(pState), pState->uStatTAD));
    5898     LogRel(("%s TX int timer expd : %d\n", INSTANCE(pState), pState->uStatTID));
    5899     LogRel(("%s RX abs timer expd : %d\n", INSTANCE(pState), pState->uStatRAD));
    5900     LogRel(("%s RX int timer expd : %d\n", INSTANCE(pState), pState->uStatRID));
    5901     LogRel(("%s TX CTX descriptors: %d\n", INSTANCE(pState), pState->uStatDescCtx));
    5902     LogRel(("%s TX DAT descriptors: %d\n", INSTANCE(pState), pState->uStatDescDat));
    5903     LogRel(("%s TX LEG descriptors: %d\n", INSTANCE(pState), pState->uStatDescLeg));
    5904     LogRel(("%s Received frames   : %d\n", INSTANCE(pState), pState->uStatRxFrm));
    5905     LogRel(("%s Transmitted frames: %d\n", INSTANCE(pState), pState->uStatTxFrm));
    5906     LogRel(("%s TX frames up to 1514: %d\n", INSTANCE(pState), pState->uStatTx1514));
    5907     LogRel(("%s TX frames up to 2962: %d\n", INSTANCE(pState), pState->uStatTx2962));
    5908     LogRel(("%s TX frames up to 4410: %d\n", INSTANCE(pState), pState->uStatTx4410));
    5909     LogRel(("%s TX frames up to 5858: %d\n", INSTANCE(pState), pState->uStatTx5858));
    5910     LogRel(("%s TX frames up to 7306: %d\n", INSTANCE(pState), pState->uStatTx7306));
    5911     LogRel(("%s TX frames up to 8754: %d\n", INSTANCE(pState), pState->uStatTx8754));
    5912     LogRel(("%s TX frames up to 16384: %d\n", INSTANCE(pState), pState->uStatTx16384));
    5913     LogRel(("%s TX frames up to 32768: %d\n", INSTANCE(pState), pState->uStatTx32768));
    5914     LogRel(("%s Larger TX frames    : %d\n", INSTANCE(pState), pState->uStatTxLarge));
    5915     LogRel(("%s Max TX Delay        : %lld\n", INSTANCE(pState), pState->uStatMaxTxDelay));
     5876    LogRel(("%s Interrupt attempts: %d\n", pState->szPrf, pState->uStatIntTry));
     5877    LogRel(("%s Interrupts raised : %d\n", pState->szPrf, pState->uStatInt));
     5878    LogRel(("%s Interrupts lowered: %d\n", pState->szPrf, pState->uStatIntLower));
     5879    LogRel(("%s Interrupts delayed: %d\n", pState->szPrf, pState->uStatIntDly));
     5880    LogRel(("%s Disabled delayed:   %d\n", pState->szPrf, pState->uStatDisDly));
     5881    LogRel(("%s Interrupts skipped: %d\n", pState->szPrf, pState->uStatIntSkip));
     5882    LogRel(("%s Masked interrupts : %d\n", pState->szPrf, pState->uStatIntMasked));
     5883    LogRel(("%s Early interrupts  : %d\n", pState->szPrf, pState->uStatIntEarly));
     5884    LogRel(("%s Late interrupts   : %d\n", pState->szPrf, pState->uStatIntLate));
     5885    LogRel(("%s Lost interrupts   : %d\n", pState->szPrf, pState->iStatIntLost));
     5886    LogRel(("%s Interrupts by RX  : %d\n", pState->szPrf, pState->uStatIntRx));
     5887    LogRel(("%s Interrupts by TX  : %d\n", pState->szPrf, pState->uStatIntTx));
     5888    LogRel(("%s Interrupts by ICS : %d\n", pState->szPrf, pState->uStatIntICS));
     5889    LogRel(("%s Interrupts by RDTR: %d\n", pState->szPrf, pState->uStatIntRDTR));
     5890    LogRel(("%s Interrupts by RDMT: %d\n", pState->szPrf, pState->uStatIntRXDMT0));
     5891    LogRel(("%s Interrupts by TXQE: %d\n", pState->szPrf, pState->uStatIntTXQE));
     5892    LogRel(("%s TX int delay asked: %d\n", pState->szPrf, pState->uStatTxIDE));
     5893    LogRel(("%s TX delayed:         %d\n", pState->szPrf, pState->uStatTxDelayed));
     5894    LogRel(("%s TX delay expired:   %d\n", pState->szPrf, pState->uStatTxDelayExp));
     5895    LogRel(("%s TX no report asked: %d\n", pState->szPrf, pState->uStatTxNoRS));
     5896    LogRel(("%s TX abs timer expd : %d\n", pState->szPrf, pState->uStatTAD));
     5897    LogRel(("%s TX int timer expd : %d\n", pState->szPrf, pState->uStatTID));
     5898    LogRel(("%s RX abs timer expd : %d\n", pState->szPrf, pState->uStatRAD));
     5899    LogRel(("%s RX int timer expd : %d\n", pState->szPrf, pState->uStatRID));
     5900    LogRel(("%s TX CTX descriptors: %d\n", pState->szPrf, pState->uStatDescCtx));
     5901    LogRel(("%s TX DAT descriptors: %d\n", pState->szPrf, pState->uStatDescDat));
     5902    LogRel(("%s TX LEG descriptors: %d\n", pState->szPrf, pState->uStatDescLeg));
     5903    LogRel(("%s Received frames   : %d\n", pState->szPrf, pState->uStatRxFrm));
     5904    LogRel(("%s Transmitted frames: %d\n", pState->szPrf, pState->uStatTxFrm));
     5905    LogRel(("%s TX frames up to 1514: %d\n", pState->szPrf, pState->uStatTx1514));
     5906    LogRel(("%s TX frames up to 2962: %d\n", pState->szPrf, pState->uStatTx2962));
     5907    LogRel(("%s TX frames up to 4410: %d\n", pState->szPrf, pState->uStatTx4410));
     5908    LogRel(("%s TX frames up to 5858: %d\n", pState->szPrf, pState->uStatTx5858));
     5909    LogRel(("%s TX frames up to 7306: %d\n", pState->szPrf, pState->uStatTx7306));
     5910    LogRel(("%s TX frames up to 8754: %d\n", pState->szPrf, pState->uStatTx8754));
     5911    LogRel(("%s TX frames up to 16384: %d\n", pState->szPrf, pState->uStatTx16384));
     5912    LogRel(("%s TX frames up to 32768: %d\n", pState->szPrf, pState->uStatTx32768));
     5913    LogRel(("%s Larger TX frames    : %d\n", pState->szPrf, pState->uStatTxLarge));
     5914    LogRel(("%s Max TX Delay        : %lld\n", pState->szPrf, pState->uStatMaxTxDelay));
    59165915# endif /* E1K_INT_STATS */
    59175916}
     
    60126011    }
    60136012    E1kLog2(("%s e1kCanReceive: at exit RDH=%d RDT=%d RDLEN=%d u16RxBSize=%d cb=%lu\n",
    6014              INSTANCE(pState), RDH, RDT, RDLEN, pState->u16RxBSize, cb));
     6013             pState->szPrf, RDH, RDT, RDLEN, pState->u16RxBSize, cb));
    60156014
    60166015    e1kCsRxLeave(pState);
     
    60366035    }
    60376036    E1kLog2(("%s e1kCanReceive: at exit in_cache=%d RDH=%d RDT=%d RDLEN=%d"
    6038              " u16RxBSize=%d rc=%Rrc\n", INSTANCE(pState),
     6037             " u16RxBSize=%d rc=%Rrc\n", pState->szPrf,
    60396038             e1kRxDInCache(pState), RDH, RDT, RDLEN, pState->u16RxBSize, rc));
    60406039
     
    60716070        }
    60726071        E1kLogRel(("E1000 e1kNetworkDown_WaitReceiveAvail: waiting cMillies=%u...\n", cMillies));
    6073         E1kLog(("%s e1kNetworkDown_WaitReceiveAvail: waiting cMillies=%u...\n", INSTANCE(pState), cMillies));
     6072        E1kLog(("%s e1kNetworkDown_WaitReceiveAvail: waiting cMillies=%u...\n", pState->szPrf, cMillies));
    60746073        RTSemEventWait(pState->hEventMoreRxDescAvail, cMillies);
    60756074    }
     
    61036102            //unsigned char *pAddr = (unsigned char*)pvBuf + sizeof(ra->addr)*(ra->ctl & RA_CTL_AS);
    61046103            //E1kLog3(("%s Matching %02x:%02x:%02x:%02x:%02x:%02x against %02x:%02x:%02x:%02x:%02x:%02x...\n",
    6105             //         INSTANCE(pState), pAddr[0], pAddr[1], pAddr[2], pAddr[3], pAddr[4], pAddr[5],
     6104            //         pState->szPrf, pAddr[0], pAddr[1], pAddr[2], pAddr[3], pAddr[4], pAddr[5],
    61066105            //         ra->addr[0], ra->addr[1], ra->addr[2], ra->addr[3], ra->addr[4], ra->addr[5]));
    61076106            /*
     
    61796178    {
    61806179        E1kLog(("%s ERROR: Incoming packet is too big, cb=%d > max=%d\n",
    6181                 INSTANCE(pState), cb, E1K_MAX_RX_PKT_SIZE));
     6180                pState->szPrf, cb, E1K_MAX_RX_PKT_SIZE));
    61826181        E1K_INC_CNT32(ROC);
    61836182        return false;
     
    61876186        /* When long packet reception is disabled packets over 1522 are discarded */
    61886187        E1kLog(("%s Discarding incoming packet (LPE=0), cb=%d\n",
    6189                 INSTANCE(pState), cb));
     6188                pState->szPrf, cb));
    61906189        E1K_INC_CNT32(ROC);
    61916190        return false;
     
    62036202            if (RCTL & RCTL_CFIEN)
    62046203            {
    6205                 E1kLog3(("%s VLAN filter: VLAN=%d CFI=%d RCTL_CFI=%d\n", INSTANCE(pState),
     6204                E1kLog3(("%s VLAN filter: VLAN=%d CFI=%d RCTL_CFI=%d\n", pState->szPrf,
    62066205                         E1K_SPEC_VLAN(RT_BE2H_U16(u16Ptr[7])),
    62076206                         E1K_SPEC_CFI(RT_BE2H_U16(u16Ptr[7])),
     
    62106209                {
    62116210                    E1kLog2(("%s Packet filter: CFIs do not match in packet and RCTL (%d!=%d)\n",
    6212                              INSTANCE(pState), E1K_SPEC_CFI(RT_BE2H_U16(u16Ptr[7])), !!(RCTL & RCTL_CFI)));
     6211                             pState->szPrf, E1K_SPEC_CFI(RT_BE2H_U16(u16Ptr[7])), !!(RCTL & RCTL_CFI)));
    62136212                    return false;
    62146213                }
    62156214            }
    62166215            else
    6217                 E1kLog3(("%s VLAN filter: VLAN=%d\n", INSTANCE(pState),
     6216                E1kLog3(("%s VLAN filter: VLAN=%d\n", pState->szPrf,
    62186217                         E1K_SPEC_VLAN(RT_BE2H_U16(u16Ptr[7]))));
    62196218            if (!ASMBitTest(pState->auVFTA, E1K_SPEC_VLAN(RT_BE2H_U16(u16Ptr[7]))))
    62206219            {
    62216220                E1kLog2(("%s Packet filter: no VLAN match (id=%d)\n",
    6222                          INSTANCE(pState), E1K_SPEC_VLAN(RT_BE2H_U16(u16Ptr[7]))));
     6221                         pState->szPrf, E1K_SPEC_VLAN(RT_BE2H_U16(u16Ptr[7]))));
    62236222                return false;
    62246223            }
     
    62286227    if (e1kIsBroadcast(pvBuf) && (RCTL & RCTL_BAM))
    62296228        return true;
    6230     E1kLog2(("%s Packet filter: not a broadcast\n", INSTANCE(pState)));
     6229    E1kLog2(("%s Packet filter: not a broadcast\n", pState->szPrf));
    62316230    if (e1kIsMulticast(pvBuf))
    62326231    {
     
    62346233        if (RCTL & RCTL_MPE)
    62356234            return true;
    6236         E1kLog2(("%s Packet filter: no promiscuous multicast\n", INSTANCE(pState)));
     6235        E1kLog2(("%s Packet filter: no promiscuous multicast\n", pState->szPrf));
    62376236        /* Try perfect matches first */
    62386237        if (e1kPerfectMatch(pState, pvBuf))
     
    62416240            return true;
    62426241        }
    6243         E1kLog2(("%s Packet filter: no perfect match\n", INSTANCE(pState)));
     6242        E1kLog2(("%s Packet filter: no perfect match\n", pState->szPrf));
    62446243        if (e1kImperfectMatch(pState, pvBuf))
    62456244            return true;
    6246         E1kLog2(("%s Packet filter: no imperfect match\n", INSTANCE(pState)));
     6245        E1kLog2(("%s Packet filter: no imperfect match\n", pState->szPrf));
    62476246    }
    62486247    else {
     
    62506249        if (RCTL & RCTL_UPE)
    62516250            return true;
    6252         E1kLog2(("%s Packet filter: no promiscuous unicast\n", INSTANCE(pState)));
     6251        E1kLog2(("%s Packet filter: no promiscuous unicast\n", pState->szPrf));
    62536252        if (e1kPerfectMatch(pState, pvBuf))
    62546253        {
     
    62566255            return true;
    62576256        }
    6258         E1kLog2(("%s Packet filter: no perfect match\n", INSTANCE(pState)));
    6259     }
    6260     E1kLog2(("%s Packet filter: packet discarded\n", INSTANCE(pState)));
     6257        E1kLog2(("%s Packet filter: no perfect match\n", pState->szPrf));
     6258    }
     6259    E1kLog2(("%s Packet filter: packet discarded\n", pState->szPrf));
    62616260    return false;
    62626261}
     
    62776276        &&  enmVMState != VMSTATE_RUNNING_LS)
    62786277    {
    6279         E1kLog(("%s Dropping incoming packet as VM is not running.\n", INSTANCE(pState)));
     6278        E1kLog(("%s Dropping incoming packet as VM is not running.\n", pState->szPrf));
    62806279        return VINF_SUCCESS;
    62816280    }
     
    62846283    if (!(RCTL & RCTL_EN) || pState->fLocked || !(STATUS & STATUS_LU))
    62856284    {
    6286         E1kLog(("%s Dropping incoming packet as receive operation is disabled.\n", INSTANCE(pState)));
     6285        E1kLog(("%s Dropping incoming packet as receive operation is disabled.\n", pState->szPrf));
    62876286        return VINF_SUCCESS;
    62886287    }
     
    63766375        {
    63776376            E1kLog(("%s Link will be up in approximately %d secs\n",
    6378                     INSTANCE(pState), pState->cMsLinkUpDelay / 1000));
     6377                    pState->szPrf, pState->cMsLinkUpDelay / 1000));
    63796378            pState->fCableConnected = true;
    63806379            STATUS &= ~STATUS_LU;
     
    63866385        else
    63876386        {
    6388             E1kLog(("%s Link is down\n", INSTANCE(pState)));
     6387            E1kLog(("%s Link is down\n", pState->szPrf));
    63896388            pState->fCableConnected = false;
    63906389            STATUS &= ~STATUS_LU;
     
    64726471    e1kCancelTimer(pState, pState->CTX_SUFF(pIntTimer));
    64736472    /* 3) Did I forget anything? */
    6474     E1kLog(("%s Locked\n", INSTANCE(pState)));
     6473    E1kLog(("%s Locked\n", pState->szPrf));
    64756474    return VINF_SUCCESS;
    64766475#endif
     
    65236522#endif /* E1K_WITH_TXD_CACHE */
    65246523/**@todo GSO requires some more state here. */
    6525     E1kLog(("%s State has been saved\n", INSTANCE(pState)));
     6524    E1kLog(("%s State has been saved\n", pState->szPrf));
    65266525    return VINF_SUCCESS;
    65276526}
     
    65396538        pState->fLocked = false;
    65406539    else
    6541         E1kLog(("%s VM is not running -- remain locked\n", INSTANCE(pState)));
    6542     E1kLog(("%s Unlocked\n", INSTANCE(pState)));
     6540        E1kLog(("%s VM is not running -- remain locked\n", pState->szPrf));
     6541    E1kLog(("%s Unlocked\n", pState->szPrf));
    65436542    return VINF_SUCCESS;
    65446543}
     
    65846583        if (   memcmp(&macConfigured, &pState->macConfigured, sizeof(macConfigured))
    65856584            && (uPass == 0 || !PDMDevHlpVMTeleportedAndNotFullyResumedYet(pDevIns)) )
    6586             LogRel(("%s: The mac address differs: config=%RTmac saved=%RTmac\n", INSTANCE(pState), &pState->macConfigured, &macConfigured));
     6585            LogRel(("%s: The mac address differs: config=%RTmac saved=%RTmac\n", pState->szPrf, &pState->macConfigured, &macConfigured));
    65876586
    65886587        E1KCHIP eChip;
     
    66576656        e1kSetupGsoCtx(&pState->GsoCtx, &pState->contextTSE);
    66586657
    6659         E1kLog(("%s State has been restored\n", INSTANCE(pState)));
     6658        E1kLog(("%s State has been restored\n", pState->szPrf));
    66606659        e1kDumpState(pState);
    66616660    }
     
    66846683        && pState->cMsLinkUpDelay)
    66856684    {
    6686         E1kLog(("%s Link is down temporarily\n", INSTANCE(pState)));
     6685        E1kLog(("%s Link is down temporarily\n", pState->szPrf));
    66876686        STATUS &= ~STATUS_LU;
    66886687        Phy::setLinkStatus(&pState->phy, false);
     
    70047003{
    70057004    E1KSTATE *pState = PDMINS_2_DATA(pDevIns, E1KSTATE*);
    7006     Log(("%s e1kR3Detach:\n", INSTANCE(pState)));
     7005    Log(("%s e1kR3Detach:\n", pState->szPrf));
    70077006
    70087007    AssertLogRelReturnVoid(iLUN == 0);
     
    70407039{
    70417040    E1KSTATE *pState = PDMINS_2_DATA(pDevIns, E1KSTATE*);
    7042     LogFlow(("%s e1kR3Attach:\n",  INSTANCE(pState)));
     7041    LogFlow(("%s e1kR3Attach:\n",  pState->szPrf));
    70437042
    70447043    AssertLogRelReturn(iLUN == 0, VERR_PDM_NO_SUCH_LUN);
     
    70797078        /* This should never happen because this function is not called
    70807079         * if there is no driver to attach! */
    7081         Log(("%s No attached driver!\n", INSTANCE(pState)));
     7080        Log(("%s No attached driver!\n", pState->szPrf));
    70827081    }
    70837082
     
    71957194
    71967195    e1kDumpState(pState);
    7197     E1kLog(("%s Destroying instance\n", INSTANCE(pState)));
     7196    E1kLog(("%s Destroying instance\n", pState->szPrf));
    71987197    if (PDMCritSectIsInitialized(&pState->cs))
    71997198    {
     
    73007299     * Note! Caller has initialized it to ZERO already.
    73017300     */
    7302     RTStrPrintf(pThis->szInstance, sizeof(pThis->szInstance), "E1000#%d", iInstance);
    7303     E1kLog(("%s Constructing new instance sizeof(E1KRXDESC)=%d\n", INSTANCE(pThis), sizeof(E1KRXDESC)));
     7301    RTStrPrintf(pThis->szPrf, sizeof(pThis->szPrf), "E1000#%d", iInstance);
     7302    E1kLog(("%s Constructing new instance sizeof(E1KRXDESC)=%d\n", pThis->szPrf, sizeof(E1KRXDESC)));
    73047303    pThis->hEventMoreRxDescAvail = NIL_RTSEMEVENT;
    73057304    pThis->pDevInsR3    = pDevIns;
     
    73867385    Assert(pThis->cMsLinkUpDelay <= 300000); /* less than 5 minutes */
    73877386    if (pThis->cMsLinkUpDelay > 5000)
    7388         LogRel(("%s WARNING! Link up delay is set to %u seconds!\n", INSTANCE(pThis), pThis->cMsLinkUpDelay / 1000));
     7387        LogRel(("%s WARNING! Link up delay is set to %u seconds!\n", pThis->szPrf, pThis->cMsLinkUpDelay / 1000));
    73897388    else if (pThis->cMsLinkUpDelay == 0)
    7390         LogRel(("%s WARNING! Link up delay is disabled!\n", INSTANCE(pThis)));
    7391 
    7392     E1kLog(("%s Chip=%s LinkUpDelay=%ums EthernetCRC=%s GSO=%s\n", INSTANCE(pThis),
     7389        LogRel(("%s WARNING! Link up delay is disabled!\n", pThis->szPrf));
     7390
     7391    E1kLog(("%s Chip=%s LinkUpDelay=%ums EthernetCRC=%s GSO=%s\n", pThis->szPrf,
    73937392            g_Chips[pThis->eChip].pcszName, pThis->cMsLinkUpDelay,
    73947393            pThis->fEthernetCRC ? "on" : "off",
     
    74067405    AssertRCReturn(rc, rc);
    74077406
    7408     rc = PDMDevHlpCritSectInit(pDevIns, &pThis->cs, RT_SRC_POS, "%s", pThis->szInstance);
     7407    rc = PDMDevHlpCritSectInit(pDevIns, &pThis->cs, RT_SRC_POS, "E1000#%d", iInstance);
    74097408    if (RT_FAILURE(rc))
    74107409        return rc;
    7411     rc = PDMDevHlpCritSectInit(pDevIns, &pThis->csRx, RT_SRC_POS, "%sRX", pThis->szInstance);
     7410    rc = PDMDevHlpCritSectInit(pDevIns, &pThis->csRx, RT_SRC_POS, "E1000#%dRX", iInstance);
    74127411    if (RT_FAILURE(rc))
    74137412        return rc;
    74147413#ifdef E1K_WITH_TX_CS
    7415     rc = PDMDevHlpCritSectInit(pDevIns, &pThis->csTx, RT_SRC_POS, "%sTX", pThis->szInstance);
     7414    rc = PDMDevHlpCritSectInit(pDevIns, &pThis->csTx, RT_SRC_POS, "E1000#%dTX", iInstance);
    74167415    if (RT_FAILURE(rc))
    74177416        return rc;
     
    75717570    {
    75727571        /* No error! */
    7573         E1kLog(("%s This adapter is not attached to any network!\n", INSTANCE(pThis)));
     7572        E1kLog(("%s This adapter is not attached to any network!\n", pThis->szPrf));
    75747573    }
    75757574    else
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