Changeset 38736 in vbox for trunk/src/VBox
- Timestamp:
- Sep 13, 2011 1:58:47 PM (13 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestLog.h
r28800 r38736 28 28 29 29 #ifndef RT_OS_WINDOWS 30 31 /* Since I don't know the background for the stuff below, I prefer not to 32 change it. I don't need it or want it for backdoor logging inside the 33 Linux Guest Additions kernel modules though. */ 34 /* Update: bird made this the stance on all non-windows platforms. */ 35 # include <VBox/log.h> 36 37 #else /* RT_OS_LINUX not defined */ 30 # error "Don't include this file." 31 #else /* RT_OS_WINDOWS */ 38 32 /* Save LOG_ENABLED state, because "VBox/rt/log.h" 39 33 * may undefine it for IN_RING0 code. … … 60 54 # endif 61 55 62 #endif /* RT_OS_ LINUX not defined*/56 #endif /* RT_OS_WINDOWS */ 63 57 64 #endif /* __VBOXGUESTLOG__H */58 #endif /* !__VBOXGUESTLOG__H */ -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR0LibSharedFolders.h
r33994 r38736 53 53 #endif 54 54 55 #if defined(RT_OS_ LINUX) || defined(RT_OS_WINDOWS)55 #if defined(RT_OS_WINDOWS) 56 56 /** @todo remove this legacy and use VBox/log.h and/or iprt/log.h. */ 57 57 # ifdef DEBUG -
trunk/src/VBox/Additions/linux/sharedfolders/vfsmod.h
r33994 r38736 1 1 /** @file 2 * 3 * vboxsf -- VirtualBox Guest Additions for Linux 2 * vboxsf - VirtualBox Guest Additions for Linux. 4 3 */ 5 4 6 5 /* 7 * Copyright (C) 2006-201 0Oracle Corporation6 * Copyright (C) 2006-2011 Oracle Corporation 8 7 * 9 8 * This file is part of VirtualBox Open Source Edition (OSE), as … … 19 18 #define VFSMOD_H 20 19 20 #define LOG_GROUP LOG_GROUP_SHARED_FOLDERS 21 21 #include "the-linux-kernel.h" 22 22 #include "version-generated.h" 23 23 #include "product-generated.h" 24 #include <VBox/log.h> 24 25 25 26 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) … … 155 156 #endif 156 157 157 #endif /* vfsmod.h */ 158 #endif 159 -
trunk/src/VBox/Additions/solaris/DRM/vboxvideo_drm.c
r33656 r38736 29 29 * Header Files * 30 30 *******************************************************************************/ 31 #ifdef DEBUG_ramshankar 32 # define LOG_INSTANCE RTLogRelDefaultInstance() 33 #endif 31 34 #undef offsetof /* This gets redefined in drmP.h */ 32 35 #include "include/drmP.h" … … 38 41 #include <VBox/version.h> 39 42 40 #ifdef DEBUG_ramshankar41 # undef LogFlow42 # undef Log43 # define LogFlow LogRel44 # define Log LogRel45 #endif46 43 47 44 /******************************************************************************* -
trunk/src/VBox/Additions/solaris/Virtio/Virtio-solaris.c
r34233 r38736 1 1 /* $Id$ */ 2 2 /** @file 3 * VirtualBox Guest Additions :Virtio Driver for Solaris.3 * VirtualBox Guest Additions - Virtio Driver for Solaris. 4 4 */ 5 5 … … 28 28 * Header Files * 29 29 *******************************************************************************/ 30 #ifdef DEBUG_ramshankar 31 # define LOG_INSTANCE RTLogRelDefaultInstance() 32 #endif 30 33 #include "Virtio-solaris.h" 31 34 … … 34 37 #include <VBox/log.h> 35 38 36 #if defined(DEBUG_ramshankar)37 # undef LogFlowFunc38 # define LogFlowFunc LogRel39 # undef Log40 # define Log LogRel41 # undef LogFlow42 # define LogFlow LogRel43 #endif44 39 45 40 /** -
trunk/src/VBox/Additions/solaris/Virtio/VirtioNet-solaris.c
r34143 r38736 1 1 /* $Id$ */ 2 2 /** @file 3 * VirtualBox Guest Additions :Virtio Network Driver for Solaris.3 * VirtualBox Guest Additions - Virtio Network Driver for Solaris. 4 4 */ 5 5 … … 28 28 * Header Files * 29 29 *******************************************************************************/ 30 #ifdef DEBUG_ramshankar 31 # define LOG_INSTANCE RTLogRelDefaultInstance() 32 #endif 30 33 #include "Virtio-solaris.h" 31 34 #include "VirtioPci-solaris.h" … … 75 78 #define VIRTIO_NET_CTRL_VLAN 0x00080000 /* Control channel VLAN filtering */ 76 79 77 #if defined(DEBUG_ramshankar)78 # undef LogFlowFunc79 # define LogFlowFunc LogRel80 # undef Log81 # define Log LogRel82 # undef LogFlow83 # define LogFlow LogRel84 #endif85 80 86 81 /******************************************************************************* -
trunk/src/VBox/Additions/solaris/Virtio/VirtioPci-solaris.c
r34233 r38736 1 1 /* $Id$ */ 2 2 /** @file 3 * VirtualBox Guest Additions :Virtio Driver for Solaris, PCI Hypervisor Interface.3 * VirtualBox Guest Additions - Virtio Driver for Solaris, PCI Hypervisor Interface. 4 4 */ 5 5 … … 28 28 * Header Files * 29 29 *******************************************************************************/ 30 #ifdef DEBUG_ramshankar 31 # define LOG_INSTANCE RTLogRelDefaultInstance() 32 #endif 30 33 #include "VirtioPci-solaris.h" 31 34 … … 57 60 #define VIRTIO_PCI_RING_ALIGN PAGE_SIZE 58 61 #define VIRTIO_PCI_QUEUE_ADDR_SHIFT PAGE_SHIFT 59 60 #if defined(DEBUG_ramshankar)61 # undef LogFlowFunc62 # define LogFlowFunc LogRel63 # undef Log64 # define Log LogRel65 # undef LogFlow66 # define LogFlow LogRel67 #endif68 62 69 63 /** -
trunk/src/VBox/Additions/solaris/Virtio/VirtioRing-solaris.c
r34233 r38736 28 28 * Header Files * 29 29 *******************************************************************************/ 30 #ifdef DEBUG_ramshankar 31 # define LOG_INSTANCE RTLogRelDefaultInstance() 32 #endif 30 33 #include "Virtio-solaris.h" 31 34 … … 37 40 38 41 #include <sys/cmn_err.h> 39 40 #if defined(DEBUG_ramshankar)41 # undef LogFlowFunc42 # define LogFlowFunc LogRel43 # undef Log44 # define Log LogRel45 # undef LogFlow46 # define LogFlow LogRel47 #endif48 42 49 43 /** -
trunk/src/VBox/Devices/USB/solaris/USBProxyDevice-solaris.cpp
r37811 r38736 21 21 *******************************************************************************/ 22 22 #define LOG_GROUP LOG_GROUP_DRV_USBPROXY 23 #ifdef DEBUG_ramshankar 24 # define LOG_INSTANCE RTLogRelDefaultInstance() 25 #endif 23 26 #include <sys/poll.h> 24 27 #include <errno.h> … … 44 47 #define USBPROXY "USBProxy" 45 48 46 #if defined(DEBUG_ramshankar)47 #undef Log48 #define Log LogRel49 #undef LogFlow50 #define LogFlow LogRel51 #undef LogFlowFunc52 #define LogFlowFunc LogRel53 #endif54 49 55 50 /******************************************************************************* -
trunk/src/VBox/GuestHost/HGSMI/HGSMICommon.cpp
r29798 r38736 1 /* $Id$ */ 1 2 /** @file 2 * 3 * VBox Host Guest Shared Memory Interface (HGSMI). 4 * HGSMI functions common for both host and guest. 3 * VBox Host Guest Shared Memory Interface (HGSMI) - Functions common to both host and guest. 5 4 */ 6 5 7 6 /* 8 * Copyright (C) 2006-20 09Oracle Corporation7 * Copyright (C) 2006-2011 Oracle Corporation 9 8 * 10 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 17 16 */ 18 17 18 #define LOG_DISABLED /* Maybe we can enabled it all the time now? */ 19 #define LOG_GROUP LOG_GROUP_HGSMI 19 20 #include <iprt/heap.h> 20 21 #include <iprt/string.h> 21 22 22 23 #include <VBox/HGSMI/HGSMI.h> 23 24 //#define LOG_GROUP LOG_GROUP_HGSMI 25 //#include <VBox/log.h> 26 #define Log(f) do{}while(0) 27 #define LogFlowFunc(f) do{}while(0) 28 #define LogFunc(f) do{}while(0) 24 #include <VBox/log.h> 29 25 30 26 -
trunk/src/VBox/HostDrivers/VBoxNetAdp/solaris/VBoxNetAdp-solaris.c
r37786 r38736 20 20 *******************************************************************************/ 21 21 #define LOG_GROUP LOG_GROUP_NET_ADP_DRV 22 #ifdef DEBUG_ramshankar 23 # define LOG_INSTANCE RTLogRelDefaultInstance() 24 #endif 22 25 #include <VBox/log.h> 23 26 #include <VBox/err.h> … … 54 57 #define VBOXNETADP_MTU 1500 55 58 56 #if defined(DEBUG_ramshankar) 57 # undef LogFlowFunc 58 # define LogFlowFunc LogRel 59 # undef Log 60 # define Log LogRel 61 # undef LogFlow 62 # define LogFlow LogRel 63 #endif 64 59 60 /******************************************************************************* 61 * Internal Functions * 62 *******************************************************************************/ 65 63 static int VBoxNetAdpSolarisAttach(dev_info_t *pDip, ddi_attach_cmd_t enmCmd); 66 64 static int VBoxNetAdpSolarisDetach(dev_info_t *pDip, ddi_detach_cmd_t enmCmd); -
trunk/src/VBox/HostDrivers/VBoxNetFlt/solaris/VBoxNetFlt-solaris.c
r37983 r38736 20 20 *******************************************************************************/ 21 21 #define LOG_GROUP LOG_GROUP_NET_FLT_DRV 22 #ifdef DEBUG_ramshankar 23 # define LOG_INSTANCE RTLogRelDefaultInstance() 24 #endif 22 25 #include <VBox/log.h> 23 26 #include <VBox/err.h> … … 84 87 #define DEVICE_DESC_DRV "VirtualBox NetDrv" 85 88 #define DEVICE_DESC_MOD "VirtualBox NetMod" 86 87 #if defined(DEBUG_ramshankar)88 # undef LogFlowFunc89 # define LogFlowFunc LogRel90 # undef Log91 # define Log LogRel92 # undef LogFlow93 # define LogFlow LogRel94 #endif95 89 96 90 #ifdef VBOXNETFLT_SOLARIS_IPV6_POLLING -
trunk/src/VBox/HostDrivers/VBoxNetFlt/solaris/VBoxNetFltBow-solaris.c
r38640 r38736 20 20 *******************************************************************************/ 21 21 #define LOG_GROUP LOG_GROUP_NET_FLT_DRV 22 #ifdef DEBUG_ramshankar 23 # define LOG_INSTANCE RTLogRelDefaultInstance() 24 #endif 22 25 #include <VBox/log.h> 23 26 #include <VBox/err.h> … … 75 78 /** VBOXNETFLTVNIC::u32Magic */ 76 79 # define VBOXNETFLTVNIC_MAGIC 0x0ddfaced 77 78 #if defined(DEBUG_ramshankar)79 # undef Log80 # define Log LogRel81 # undef LogFlow82 # define LogFlow LogRel83 # undef LOCAL84 # define LOCAL85 #endif86 80 87 81 /** VLAN tag masking, should probably be in IPRT? */ -
trunk/src/VBox/HostDrivers/VBoxUSB/solaris/USBLib-solaris.cpp
r37151 r38736 5 5 6 6 /* 7 * Copyright (C) 2008 Oracle Corporation7 * Copyright (C) 2008-2011 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 20 20 * Header Files * 21 21 *******************************************************************************/ 22 #ifdef DEBUG_ramshankar 23 # define LOG_INSTANCE RTLogRelDefaultInstance() 24 #endif 22 25 #include <VBox/usblib.h> 23 26 #include <VBox/err.h> … … 40 43 # include <strings.h> 41 44 42 /** -XXX- Remove this hackery eventually */43 #ifdef DEBUG_ramshankar44 # undef Log45 # undef LogFlow46 # define Log LogRel47 # define LogFlow LogRel48 #endif49 45 50 46 /******************************************************************************* -
trunk/src/VBox/HostDrivers/VBoxUSB/solaris/VBoxUSB-solaris.c
r38379 r38736 19 19 * Header Files * 20 20 *******************************************************************************/ 21 #define LOG_GROUP LOG_GROUP_USB_DRV 22 #ifdef DEBUG_ramshankar 23 # define LOG_INSTANCE RTLogRelDefaultInstance() 24 #endif 21 25 #include <VBox/version.h> 22 26 #include <VBox/log.h> … … 91 95 /** Maximum asynchronous requests per pipe */ 92 96 #define VBOXUSB_MAX_PIPE_ASYNC_REQS 2 93 94 #if defined(DEBUG_ramshankar)95 # undef Log96 # define Log LogRel97 # undef LogFlow98 # define LogFlow LogRel99 # undef LogFlowFunc100 # define LogFlowFunc LogRel101 #endif102 97 103 98 /** For enabling global symbols while debugging **/ -
trunk/src/VBox/HostDrivers/VBoxUSB/solaris/VBoxUSBMon-solaris.c
r38016 r38736 20 20 *******************************************************************************/ 21 21 #define LOG_GROUP LOG_GROUP_USB_DRV 22 #ifdef DEBUG_ramshankar 23 # define LOG_INSTANCE RTLogRelDefaultInstance() 24 #endif 22 25 #include "VBoxUSBFilterMgr.h" 23 26 #include <VBox/usblib-solaris.h> … … 56 59 /** The module description as seen in 'modinfo'. */ 57 60 #define DEVICE_DESC_DRV "VirtualBox USBMon" 58 59 #if defined(DEBUG_ramshankar)60 # undef LogFlowFunc61 # define LogFlowFunc LogRel62 # undef Log63 # define Log LogRel64 # undef LogFlow65 # define LogFlow LogRel66 #endif67 61 68 62 /******************************************************************************* -
trunk/src/VBox/HostServices/SharedFolders/vbsf.cpp
r35482 r38736 1 /* $Id$ */ 1 2 /** @file 2 * 3 * Shared Folders: 4 * VBox Shared Folders. 3 * Shared Folders - VBox Shared Folders. 5 4 */ 6 5 … … 32 31 #include <iprt/stream.h> 33 32 #ifdef RT_OS_DARWIN 34 # include <Carbon/Carbon.h>33 # include <Carbon/Carbon.h> 35 34 #endif 36 37 #undef LogFlow38 #define LogFlow Log39 35 40 36 #define SHFL_RT_LINK(pClient) ((pClient)->fu32Flags & SHFL_CF_SYMLINKS ? RTPATH_F_ON_LINK : RTPATH_F_FOLLOW_LINK) -
trunk/src/VBox/VMM/VMMR3/DBGFCoreWrite.cpp
r35346 r38736 71 71 * Defined Constants And Macros * 72 72 *******************************************************************************/ 73 #ifdef DEBUG_ramshankar74 # undef Log75 # define Log LogRel76 #endif77 73 #define DBGFLOG_NAME "DBGFCoreWrite" 78 74
Note:
See TracChangeset
for help on using the changeset viewer.