VirtualBox

Changeset 38736 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Sep 13, 2011 1:58:47 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
74007
Message:

*: Please don NOT redefine logger macros.

Location:
trunk/src/VBox/Additions
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestLog.h

    r28800 r38736  
    2828
    2929#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 */
    3832/* Save LOG_ENABLED state, because "VBox/rt/log.h"
    3933 * may undefine it for IN_RING0 code.
     
    6054# endif
    6155
    62 #endif  /* RT_OS_LINUX not defined */
     56#endif  /* RT_OS_WINDOWS */
    6357
    64 #endif /* __VBOXGUESTLOG__H */
     58#endif /* !__VBOXGUESTLOG__H */
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR0LibSharedFolders.h

    r33994 r38736  
    5353#endif
    5454
    55 #if defined(RT_OS_LINUX) || defined(RT_OS_WINDOWS)
     55#if defined(RT_OS_WINDOWS)
    5656/** @todo remove this legacy and use VBox/log.h and/or iprt/log.h. */
    5757# ifdef DEBUG
  • trunk/src/VBox/Additions/linux/sharedfolders/vfsmod.h

    r33994 r38736  
    11/** @file
    2  *
    3  * vboxsf -- VirtualBox Guest Additions for Linux
     2 * vboxsf - VirtualBox Guest Additions for Linux.
    43 */
    54
    65/*
    7  * Copyright (C) 2006-2010 Oracle Corporation
     6 * Copyright (C) 2006-2011 Oracle Corporation
    87 *
    98 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    1918#define VFSMOD_H
    2019
     20#define LOG_GROUP LOG_GROUP_SHARED_FOLDERS
    2121#include "the-linux-kernel.h"
    2222#include "version-generated.h"
    2323#include "product-generated.h"
     24#include <VBox/log.h>
    2425
    2526#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
     
    155156#endif
    156157
    157 #endif /* vfsmod.h */
     158#endif
     159
  • trunk/src/VBox/Additions/solaris/DRM/vboxvideo_drm.c

    r33656 r38736  
    2929*   Header Files                                                               *
    3030*******************************************************************************/
     31#ifdef DEBUG_ramshankar
     32# define LOG_INSTANCE       RTLogRelDefaultInstance()
     33#endif
    3134#undef offsetof     /* This gets redefined in drmP.h */
    3235#include "include/drmP.h"
     
    3841#include <VBox/version.h>
    3942
    40 #ifdef DEBUG_ramshankar
    41 # undef LogFlow
    42 # undef Log
    43 # define LogFlow LogRel
    44 # define Log     LogRel
    45 #endif
    4643
    4744/*******************************************************************************
  • trunk/src/VBox/Additions/solaris/Virtio/Virtio-solaris.c

    r34233 r38736  
    11/* $Id$ */
    22/** @file
    3  * VirtualBox Guest Additions: Virtio Driver for Solaris.
     3 * VirtualBox Guest Additions - Virtio Driver for Solaris.
    44 */
    55
     
    2828*   Header Files                                                               *
    2929*******************************************************************************/
     30#ifdef DEBUG_ramshankar
     31# define LOG_INSTANCE       RTLogRelDefaultInstance()
     32#endif
    3033#include "Virtio-solaris.h"
    3134
     
    3437#include <VBox/log.h>
    3538
    36 #if defined(DEBUG_ramshankar)
    37 # undef LogFlowFunc
    38 # define LogFlowFunc        LogRel
    39 # undef Log
    40 # define Log                LogRel
    41 # undef LogFlow
    42 # define LogFlow            LogRel
    43 #endif
    4439
    4540/**
  • trunk/src/VBox/Additions/solaris/Virtio/VirtioNet-solaris.c

    r34143 r38736  
    11/* $Id$ */
    22/** @file
    3  * VirtualBox Guest Additions: Virtio Network Driver for Solaris.
     3 * VirtualBox Guest Additions - Virtio Network Driver for Solaris.
    44 */
    55
     
    2828*   Header Files                                                               *
    2929*******************************************************************************/
     30#ifdef DEBUG_ramshankar
     31# define LOG_INSTANCE       RTLogRelDefaultInstance()
     32#endif
    3033#include "Virtio-solaris.h"
    3134#include "VirtioPci-solaris.h"
     
    7578#define VIRTIO_NET_CTRL_VLAN      0x00080000      /* Control channel VLAN filtering */
    7679
    77 #if defined(DEBUG_ramshankar)
    78 # undef LogFlowFunc
    79 # define LogFlowFunc        LogRel
    80 # undef Log
    81 # define Log                LogRel
    82 # undef LogFlow
    83 # define LogFlow            LogRel
    84 #endif
    8580
    8681/*******************************************************************************
  • trunk/src/VBox/Additions/solaris/Virtio/VirtioPci-solaris.c

    r34233 r38736  
    11/* $Id$ */
    22/** @file
    3  * VirtualBox Guest Additions: Virtio Driver for Solaris, PCI Hypervisor Interface.
     3 * VirtualBox Guest Additions - Virtio Driver for Solaris, PCI Hypervisor Interface.
    44 */
    55
     
    2828*   Header Files                                                               *
    2929*******************************************************************************/
     30#ifdef DEBUG_ramshankar
     31# define LOG_INSTANCE       RTLogRelDefaultInstance()
     32#endif
    3033#include "VirtioPci-solaris.h"
    3134
     
    5760#define VIRTIO_PCI_RING_ALIGN               PAGE_SIZE
    5861#define VIRTIO_PCI_QUEUE_ADDR_SHIFT         PAGE_SHIFT
    59 
    60 #if defined(DEBUG_ramshankar)
    61 # undef LogFlowFunc
    62 # define LogFlowFunc        LogRel
    63 # undef Log
    64 # define Log                LogRel
    65 # undef LogFlow
    66 # define LogFlow            LogRel
    67 #endif
    6862
    6963/**
  • trunk/src/VBox/Additions/solaris/Virtio/VirtioRing-solaris.c

    r34233 r38736  
    2828*   Header Files                                                               *
    2929*******************************************************************************/
     30#ifdef DEBUG_ramshankar
     31# define LOG_INSTANCE       RTLogRelDefaultInstance()
     32#endif
    3033#include "Virtio-solaris.h"
    3134
     
    3740
    3841#include <sys/cmn_err.h>
    39 
    40 #if defined(DEBUG_ramshankar)
    41 # undef LogFlowFunc
    42 # define LogFlowFunc        LogRel
    43 # undef Log
    44 # define Log                LogRel
    45 # undef LogFlow
    46 # define LogFlow            LogRel
    47 #endif
    4842
    4943/**
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