VirtualBox

Changeset 10608 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Jul 14, 2008 4:21:07 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
33307
Message:

Made the STDOUT destination for the ring-0 logger on Darwin printf to the kernel log (dmesg).

Location:
trunk/src/VBox/Runtime
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/Makefile.kmk

    r10452 r10608  
    910910        common/table/avlpv.cpp \
    911911        generic/RTLogWriteStdErr-stub-generic.cpp \
    912         generic/RTLogWriteStdOut-stub-generic.cpp \
    913912        generic/RTLogWriteUser-generic.cpp \
    914913        generic/uuid-generic.cpp \
     
    923922        common/err/RTErrConvertToErrno.cpp \
    924923        generic/RTAssertDoBreakpoint-generic.cpp \
     924        generic/RTLogWriteStdOut-stub-generic.cpp \
    925925        r0drv/linux/alloc-r0drv-linux.c \
    926926        r0drv/linux/initterm-r0drv-linux.c \
     
    952952        common/string/strpbrk.cpp \
    953953        generic/RTAssertDoBreakpoint-generic.cpp \
     954        generic/RTLogWriteStdOut-stub-generic.cpp \
    954955        nt/RTErrConvertFromNtStatus.cpp \
    955956        r0drv/memobj-r0drv.cpp \
     
    10051006        r0drv/darwin/process-r0drv-darwin.cpp \
    10061007        r0drv/darwin/RTLogWriteDebugger-r0drv-darwin.cpp \
     1008        r0drv/darwin/RTLogWriteStdOut-r0drv-darwin.cpp \
    10071009        r0drv/darwin/semaphore-r0drv-darwin.cpp \
    10081010        r0drv/darwin/spinlock-r0drv-darwin.cpp \
     
    10291031        common/misc/thread.cpp \
    10301032        generic/RTLogWriteDebugger-generic.cpp \
     1033        generic/RTLogWriteStdOut-stub-generic.cpp \
    10311034        generic/RTMpCpuId-generic.cpp \
    10321035        generic/RTMpCpuIdFromSetIndex-generic.cpp \
     
    10761079        generic/RTAssertDoBreakpoint-generic.cpp \
    10771080        generic/RTLogWriteDebugger-generic.cpp \
     1081        generic/RTLogWriteStdOut-stub-generic.cpp \
    10781082        generic/RTMpCpuId-generic.cpp \
    10791083        generic/RTMpCpuIdFromSetIndex-generic.cpp \
     
    11091113        common/string/memchr.asm \
    11101114        generic/RTAssertDoBreakpoint-generic.cpp \
     1115        generic/RTLogWriteStdOut-stub-generic.cpp \
    11111116        generic/RTTimerCreate-generic.cpp \
    11121117        r0drv/memobj-r0drv.cpp \
  • trunk/src/VBox/Runtime/VBox/log-vbox.cpp

    r8155 r10608  
    393393        /*
    394394         * This is where you set your ring-0 logging preferences.
     395         *
     396         * On platforms which don't differ between debugger and kernel
     397         * log printing, STDOUT is gonna be a stub and the DEBUGGER
     398         * destination is the one doing all the work. On platforms
     399         * that do differ (like Darwin), STDOUT is the kernel log.
    395400         */
    396 # if 0//defined(DEBUG_bird) && !defined(IN_GUEST)
     401# if 0 /*defined(DEBUG_bird) && !defined(IN_GUEST)*/
    397402        RTLogGroupSettings(pLogger, "all=~0 -default.l6.l5.l4.l3");
    398403        RTLogFlags(pLogger, "enabled unbuffered pid tid");
    399         pLogger->fDestFlags |= RTLOGDEST_DEBUGGER;
     404        pLogger->fDestFlags |= RTLOGDEST_DEBUGGER | RTLOGDEST_STDOUT;
    400405# endif
    401406# if defined(DEBUG_sandervl) && !defined(IN_GUEST)
     
    412417        RTLogGroupSettings(pLogger, "all=~0 -default.l6.l5.l4.l3");
    413418        RTLogFlags(pLogger, "enabled unbuffered tid");
    414         pLogger->fDestFlags |= RTLOGDEST_DEBUGGER;
     419        pLogger->fDestFlags |= RTLOGDEST_DEBUGGER | RTLOGDEST_STDOUT;
    415420# endif
    416421    }
  • trunk/src/VBox/Runtime/r0drv/darwin/RTLogWriteStdOut-r0drv-darwin.cpp

    r10593 r10608  
    11/* $Id$ */
    22/** @file
    3  * IPRT - Log To Debugger, Ring-0 Driver, Darwin.
     3 * IPRT - Log To StdOut, Ring-0 Driver, Darwin.
    44 */
    55
     
    3838
    3939
    40 RTDECL(void) RTLogWriteDebugger(const char *pch, size_t cb)
     40RTDECL(void) RTLogWriteStdOut(const char *pch, size_t cb)
    4141{
    42     kprintf("%.*s", cb, pch);
     42    printf("%.*s", cb, pch);
    4343    return;
    4444}
Note: See TracChangeset for help on using the changeset viewer.

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