diff -r d3e8e7d462dd -r f92a4f87e424 usbmgmt/usbmgr/usbman/server/SRC/UsbSvr.cpp --- a/usbmgmt/usbmgr/usbman/server/SRC/UsbSvr.cpp Thu Jul 15 20:42:20 2010 +0300 +++ b/usbmgmt/usbmgr/usbman/server/SRC/UsbSvr.cpp Tue Aug 31 17:01:47 2010 +0300 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available * under the terms of "Eclipse Public License v1.0" @@ -17,16 +17,18 @@ #include #include +#include #include "CUsbScheduler.h" #include "CUsbServer.h" -#include #include "rusb.h" +#include "OstTraceDefinitions.h" +#ifdef OST_TRACE_COMPILER_IN_USE +#include "UsbSvrTraces.h" +#endif + static void RunServerL(); -#ifdef __FLOG_ACTIVE -_LIT8(KLogComponent, "USBSVR"); -#endif GLDEF_C TInt E32Main() @@ -60,7 +62,13 @@ // { // naming the server thread after the server helps to debug panics - LEAVEIFERRORL(User::RenameThread(KUsbServerName)); + TInt err = User::RenameThread(KUsbServerName); + if(err < 0) + { + OstTrace1( TRACE_NORMAL, USBSVR_RUNSERVERL, "::RunServerL; User::RenameThread(KUsbServerName) error, leave reason=%d", err ); + User::Leave(err); + } + // // create and install the active scheduler we need CUsbScheduler* scheduler = CUsbScheduler::NewL();