[Ace-users] %I (of ACE_DEBUG) does not ident if used alone without ACE_TRACE ?

hongxing777 at gmail.com hongxing777 at gmail.com
Sat Aug 11 06:56:53 CDT 2007


ACE VERSION: 5.5.10
HOST MACHINE and OPERATING SYSTEM: Intel P4 - Windows XP, SuSE Linux
9
TARGET MACHINE and OPERATING SYSTEM, if different from HOST: Same as
Host
COMPILER NAME AND VERSION (AND PATCHLEVEL): VS.NET 2003, gcc 3.3.3

void foo();

int ACE_TMAIN(int argc, ACE_TCHAR *argv[])
{
    ACE_TRACE("main");

    ACE_DEBUG((LM_DEBUG, "%IHi Mom\n"));
    foo();
    ACE_DEBUG((LM_DEBUG, "%IGoodNight\n"));

    return 0;
}

void foo()
{
    ACE_TRACE("foo");
    ACE_DEBUG((LM_DEBUG, "%IHowdy Pardner\n"));
}

The up code works fine with ACE_TRACE.
But if ACE_TRACE is removed, %I of ACE_DEBUG does not ident any more.

My question is:
must %I  be used with ACE_TRACE to generate correct ident ?



More information about the Ace-users mailing list