zeroconf/common/inc/mdnsdebug.h
changeset 14 da856f45b798
equal deleted inserted replaced
12:78fbd574edf4 14:da856f45b798
       
     1 /*
       
     2 * Copyright (c) 2006 - 2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 /**
       
    20 @file
       
    21 @internalComponent
       
    22 */
       
    23 
       
    24 #ifndef MDNSDEBUG_H
       
    25 #define MDNSDEBUG_H
       
    26 
       
    27 #include <comms-infras/commsdebugutility.h>
       
    28 
       
    29 __FLOG_STMT(_LIT8(KMDNSSubsystem, "MDNS");)
       
    30 
       
    31 #ifdef __FLOG_ACTIVE
       
    32 #define __MDNS_HEAP_FLOG \
       
    33     { \
       
    34     TInt allocated; \
       
    35     TInt largest; \
       
    36     TInt available(User::Heap().Available(largest)); \
       
    37     TInt size(User::Heap().Size()); \
       
    38     User::Heap().AllocSize(allocated); \
       
    39     __FLOG_STATIC_VA((KMDNSSubsystem, KComponent, _L8("Heap: Size = %d, Allocated = %d, Available = %d, Largest block = %d"), size, allocated, available, largest)); \
       
    40     }
       
    41 #else
       
    42 #define __MDNS_HEAP_FLOG 
       
    43 #endif // __FLOG_ACTIVE
       
    44 
       
    45 #endif // MDNSDEBUG_H