VirtualBox

Changeset 86407 in vbox


Ignore:
Timestamp:
Oct 2, 2020 6:26:15 AM (4 years ago)
Author:
vboxsync
Message:

Fix burn

Location:
trunk/src/VBox/Devices
Files:
2 edited

Legend:

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

    r86405 r86407  
    624624        if (cBufsAvailable)
    625625        {
    626             VIRTIOLOGLEVEL10("%s %u empty bufs added to %s by guest (notifying leaf device)\n",
    627                        pThis->szInst, cBufsAvailable, pVirtq->szName);
     626            Log10Func(("%s %u empty bufs added to %s by guest (notifying leaf device)\n",
     627                       pThis->szInst, cBufsAvailable, pVirtq->szName));
    628628            virtioNetWakeupRxBufWaiter(pDevIns);
    629629        }
    630630        else
    631             VIRTIOLOGLEVEL10("%s \n\n***WARNING: %s notified but no empty bufs added by guest! (skip notifying of leaf device)\n\n",
    632                     pThis->szInst, pVirtq->szName);
     631            Log10Func(("%s \n\n***WARNING: %s notified but no empty bufs added by guest! (skip notifying of leaf device)\n\n",
     632                    pThis->szInst, pVirtq->szName));
    633633    }
    634634    else if (IS_TX_VIRTQ(uVirtqNbr) || IS_CTRL_VIRTQ(uVirtqNbr))
     
    639639            if (ASMAtomicReadBool(&pWorker->fSleeping))
    640640            {
    641                 VIRTIOLOGLEVEL10("%s %s has available buffers - waking worker.\n", pThis->szInst, pVirtq->szName);
     641                Log10Func(("%s %s has available buffers - waking worker.\n", pThis->szInst, pVirtq->szName));
    642642
    643643                int rc = PDMDevHlpSUPSemEventSignal(pDevIns, pWorker->hEvtProcess);
     
    646646            else
    647647            {
    648                 VIRTIOLOGLEVEL10("%s %s has available buffers - worker already awake\n", pThis->szInst, pVirtq->szName);
     648                Log10Func(("%s %s has available buffers - worker already awake\n", pThis->szInst, pVirtq->szName));
    649649            }
    650650        }
    651651        else
    652652        {
    653             VIRTIOLOGLEVEL10("%s %s has available buffers - waking worker.\n", pThis->szInst, pVirtq->szName);
     653            Log10Func(("%s %s has available buffers - waking worker.\n", pThis->szInst, pVirtq->szName));
    654654        }
    655655    }
  • trunk/src/VBox/Devices/VirtIO/VirtioCore.h

    r86406 r86407  
    3535# define VIRTIO_HEX_DUMP(logLevel, pv, cb, base, title) do { } while (0)
    3636#endif
    37 
    38 #ifdef IN_RING3
    39 #   define VIRTIOLOG(format...)    LogFunc((format))
    40 #   define VIRTIOLOGREL(format...) LogRelFunc((format))
    41 #else
    42 #   define VIRTIOLOG(format...)    SUPR0Printf(format)
    43 #   define VIRTIOLOGREL(format...) SUPR0Printf(format)
    44 #endif
    45 
    46 #define VIRTIOLOGLEVEL2(format...)  virtioLogLevel(2,  format)
    47 #define VIRTIOLOGLEVEL3(format...)  virtioLogLevel(3,  format)
    48 #define VIRTIOLOGLEVEL4(format...)  virtioLogLevel(4,  format)
    49 #define VIRTIOLOGLEVEL5(format...)  virtioLogLevel(5,  format)
    50 #define VIRTIOLOGLEVEL6(format...)  virtioLogLevel(6,  format)
    51 #define VIRTIOLOGLEVEL7(format...)  virtioLogLevel(7,  format)
    52 #define VIRTIOLOGLEVEL8(format...)  virtioLogLevel(8,  format)
    53 #define VIRTIOLOGLEVEL9(format...)  virtioLogLevel(9,  format)
    54 #define VIRTIOLOGLEVEL10(format...) virtioLogLevel(10, format)
    55 #define VIRTIOLOGLEVEL11(format...) virtioLogLevel(11, format)
    56 #define VIRTIOLOGLEVEL12(format...) virtioLogLevel(12, format)
    57 
    58 DECLINLINE(void) virtioLogLevel(int logLevel, const char *format...)
    59 {
    60     va_list arglist;
    61     va_start(arglist, format);
    62     if (LogIsItEnabled(logLevel, LOG_GROUP))
    63         VIRTIOLOG(format);
    64     va_end(arglist);
    65     RT_NOREF(logLevel);
    66 }
    6737
    6838/** Pointer to the shared VirtIO state. */
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