Share via


USBDBGMSG (Compact 2013)

10/16/2014

This macro sends a USBDBG message to the log if the appropriate debug zone is set active.

Syntax

#define USBDBGMSG(
    zone, 
    str
)

Parameters

  • zone
    A value that determines whether the message is sent to the log.
  • str
    The string to print.

Remarks

If the debug zone is currently set to active, the str is sent to the log. For information about the available debug zones, see USBDBG PDD Constants.

Example

The following example shows the typical use of the USDBGMSG macro.

USBDBGMSG(USBDBG_ZONE_FUNC, (L"usbdbgpdd: +PowerOff\r\n"));

If the USBDBG_ZONE_FUNC zone is active, the string is written to the log.

See Also

Reference

USBDBG PDD Macros