VirtualBox

Changeset 4351 in vbox


Ignore:
Timestamp:
Aug 24, 2007 1:38:58 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
23898
Message:

Added additional logging macros

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/log.h

    r4071 r4351  
    738738#define LogRelFlow(a)      LogRelIt(LOG_REL_INSTANCE, RTLOGGRPFLAGS_FLOW,     LOG_GROUP, a)
    739739
     740/** @def LogRelFunc
     741 * Release logging.  Prepends the given log message with the function name
     742 * followed by a semicolon and space.
     743 */
     744#define LogRelFunc(a) \
     745    do { LogRel(("%s: ", __PRETTY_FUNCTION__)); LogRel(a); } while (0)
     746
     747/** @def LogRelThisFunc
     748 * The same as LogRelFunc but for class functions (methods): the resulting log
     749 * line is additionally perpended with a hex value of |this| pointer.
     750 */
     751#define LogRelThisFunc(a) \
     752    do { LogRel(("{%p} %s: ", this, __PRETTY_FUNCTION__)); LogRel(a); } while (0)
     753
    740754/** @def LogRelLelik
    741755 *  lelik logging.
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