- Timestamp:
- Oct 2, 2020 6:26:15 AM (4 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevVirtioNet_1_0.cpp
r86405 r86407 624 624 if (cBufsAvailable) 625 625 { 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)); 628 628 virtioNetWakeupRxBufWaiter(pDevIns); 629 629 } 630 630 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)); 633 633 } 634 634 else if (IS_TX_VIRTQ(uVirtqNbr) || IS_CTRL_VIRTQ(uVirtqNbr)) … … 639 639 if (ASMAtomicReadBool(&pWorker->fSleeping)) 640 640 { 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)); 642 642 643 643 int rc = PDMDevHlpSUPSemEventSignal(pDevIns, pWorker->hEvtProcess); … … 646 646 else 647 647 { 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)); 649 649 } 650 650 } 651 651 else 652 652 { 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)); 654 654 } 655 655 } -
trunk/src/VBox/Devices/VirtIO/VirtioCore.h
r86406 r86407 35 35 # define VIRTIO_HEX_DUMP(logLevel, pv, cb, base, title) do { } while (0) 36 36 #endif 37 38 #ifdef IN_RING339 # define VIRTIOLOG(format...) LogFunc((format))40 # define VIRTIOLOGREL(format...) LogRelFunc((format))41 #else42 # define VIRTIOLOG(format...) SUPR0Printf(format)43 # define VIRTIOLOGREL(format...) SUPR0Printf(format)44 #endif45 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 }67 37 68 38 /** Pointer to the shared VirtIO state. */
Note:
See TracChangeset
for help on using the changeset viewer.