bluetooth/btstack/l2cap/l2utils.cpp
changeset 0 29b1cd4cb562
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #include <bluetooth/logger.h>
       
    17 
       
    18 #include <e32base.h>
       
    19 #include "l2util.h"
       
    20 
       
    21 #ifdef __FLOG_ACTIVE
       
    22 _LIT8(KLogComponent, LOG_COMPONENT_L2CAP);
       
    23 #endif
       
    24 
       
    25 void Panic(TL2CAPPanic aPanic)
       
    26 // Panic L2CAP due to stack bug.
       
    27 	{
       
    28 	LOG_STATIC_FUNC
       
    29 	User::Panic(KL2CAPPanicName, aPanic);
       
    30 	}
       
    31 
       
    32 void Panic(TL2CAPPanic aPanic, TInt aState)
       
    33 // Panic L2CAP due to stack bug.
       
    34 	{
       
    35 	LOG_STATIC_FUNC
       
    36 	User::Panic(KL2CAPPanicName, (aPanic*KL2StatePanicMultiplier) + KL2StatePanicDelimiter + aState);
       
    37 	}
       
    38