VirtualBox

Changeset 16056 in vbox for trunk/src/recompiler_new/osdep.h


Ignore:
Timestamp:
Jan 19, 2009 7:19:02 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
41752
Message:

REM: Wrap all printf and fprintf calls like we used to do (and does for VBoxREM2), except when DEBUG_TMP_LOGGING is set. DEBUG_TMP_LOGGING can be used with DEBUG_ALL_LOGGING only to split the log output where some of the qemu logging goes to /tmp/vbox-qemu.log.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler_new/osdep.h

    r14763 r16056  
    3737#define fflush(file)            RTLogFlush(NULL)
    3838#define printf(...)             LogIt(LOG_INSTANCE, 0, LOG_GROUP_REM_PRINTF, (__VA_ARGS__))
    39 /* If DEBUG_ALL_LOGGING - goes to QEMU log file */
    40 #ifndef DEBUG_ALL_LOGGING
    41  #define fprintf(logfile, ...)   LogIt(LOG_INSTANCE, 0, LOG_GROUP_REM_PRINTF, (__VA_ARGS__))
     39/* If DEBUG_TMP_LOGGING - goes to QEMU log file */
     40#ifndef DEBUG_TMP_LOGGING
     41# define fprintf(logfile, ...)  LogIt(LOG_INSTANCE, 0, LOG_GROUP_REM_PRINTF, (__VA_ARGS__))
    4242#endif
    4343
     
    126126#ifdef _MSC_VER
    127127/** @todo: maybe wrong, or slow */
    128 #define REGPARM 
     128#define REGPARM
    129129#else
    130130#define REGPARM __attribute((regparm(3)))
     
    165165#ifdef _MSC_VER
    166166#define ALIGNED_MEMBER(type, name, bytes) type name
    167 #define ALIGNED_MEMBER_DEF(type, name) type name 
     167#define ALIGNED_MEMBER_DEF(type, name) type name
    168168#define PACKED_STRUCT(name) struct name
    169169#define REGISTER_BOUND_GLOBAL(type, var, reg) type var
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