diff options
Diffstat (limited to 'indra/llcommon')
47 files changed, 240 insertions, 240 deletions
| diff --git a/indra/llcommon/llallocator_heap_profile.cpp b/indra/llcommon/llallocator_heap_profile.cpp index b574ef668b..b2eafde1aa 100755 --- a/indra/llcommon/llallocator_heap_profile.cpp +++ b/indra/llcommon/llallocator_heap_profile.cpp @@ -59,7 +59,7 @@ void LLAllocatorHeapProfile::parse(std::string const & prof_text)      {          // *TODO - determine if there should be some better error state than          // mLines being empty. -brad -        llwarns << "invalid heap profile data passed into parser." << llendl; +        LL_WARNS() << "invalid heap profile data passed into parser." << LL_ENDL;          return;      } diff --git a/indra/llcommon/llapp.cpp b/indra/llcommon/llapp.cpp index 67a98d5fb8..bd8811040b 100755 --- a/indra/llcommon/llapp.cpp +++ b/indra/llcommon/llapp.cpp @@ -218,8 +218,8 @@ bool LLApp::parseCommandOptions(int argc, char** argv)  	{  		if(argv[ii][0] != '-')  		{ -			llinfos << "Did not find option identifier while parsing token: " -				<< argv[ii] << llendl; +			LL_INFOS() << "Did not find option identifier while parsing token: " +				<< argv[ii] << LL_ENDL;  			return false;  		}  		int offset = 1; @@ -303,7 +303,7 @@ void LLApp::setupErrorHandling()  	// Install the Google Breakpad crash handler for Windows  	if(mExceptionHandler == 0)  	{ -		llwarns << "adding breakpad exception handler" << llendl; +		LL_WARNS() << "adding breakpad exception handler" << LL_ENDL;  		mExceptionHandler = new google_breakpad::ExceptionHandler(  			L"C:\\Temp\\", 0, windows_post_minidump_callback, 0, google_breakpad::ExceptionHandler::HANDLER_ALL);  	} @@ -378,7 +378,7 @@ void LLApp::startErrorThread()  	//  	if(!mThreadErrorp)  	{ -		llinfos << "Starting error thread" << llendl; +		LL_INFOS() << "Starting error thread" << LL_ENDL;  		mThreadErrorp = new LLErrorThread();  		mThreadErrorp->setUserData((void *) this);  		mThreadErrorp->start(); @@ -398,7 +398,7 @@ void LLApp::runErrorHandler()  		LLApp::sErrorHandler();  	} -	//llinfos << "App status now STOPPED" << llendl; +	//LL_INFOS() << "App status now STOPPED" << LL_ENDL;  	LLApp::setStopped();  } @@ -443,7 +443,7 @@ void LLApp::setQuitting()  	if (!isExiting())  	{  		// If we're already exiting, we don't want to reset our state back to quitting. -		llinfos << "Setting app state to QUITTING" << llendl; +		LL_INFOS() << "Setting app state to QUITTING" << LL_ENDL;  		setStatus(APP_STATUS_QUITTING);  	}  } @@ -551,7 +551,7 @@ LONG WINAPI default_windows_exception_handler(struct _EXCEPTION_POINTERS *except  	if (LLApp::isError())  	{ -		llwarns << "Got another fatal signal while in the error handler, die now!" << llendl; +		LL_WARNS() << "Got another fatal signal while in the error handler, die now!" << LL_ENDL;  		retval = EXCEPTION_EXECUTE_HANDLER;  		return retval;  	} @@ -597,7 +597,7 @@ BOOL ConsoleCtrlHandler(DWORD fdwCtrlType)  				// We're already trying to die, just ignore this signal  				if (LLApp::sLogInSignal)  				{ -					llinfos << "Signal handler - Already trying to quit, ignoring signal!" << llendl; +					LL_INFOS() << "Signal handler - Already trying to quit, ignoring signal!" << LL_ENDL;  				}  				return TRUE;  			} @@ -629,8 +629,8 @@ pid_t LLApp::fork()  	if( pid < 0 )  	{  		int system_error = errno; -		llwarns << "Unable to fork! Operating system error code: " -				<< system_error << llendl; +		LL_WARNS() << "Unable to fork! Operating system error code: " +				<< system_error << LL_ENDL;  	}  	else if (pid == 0)  	{ @@ -643,7 +643,7 @@ pid_t LLApp::fork()  	}  	else  	{ -		llinfos << "Forked child process " << pid << llendl; +		LL_INFOS() << "Forked child process " << pid << LL_ENDL;  	}  	return pid;  } @@ -735,7 +735,7 @@ void default_unix_signal_handler(int signum, siginfo_t *info, void *)  	if (LLApp::sLogInSignal)  	{ -		llinfos << "Signal handler - Got signal " << signum << " - " << apr_signal_description_get(signum) << llendl; +		LL_INFOS() << "Signal handler - Got signal " << signum << " - " << apr_signal_description_get(signum) << LL_ENDL;  	} @@ -744,7 +744,7 @@ void default_unix_signal_handler(int signum, siginfo_t *info, void *)  	case SIGCHLD:  		if (LLApp::sLogInSignal)  		{ -			llinfos << "Signal handler - Got SIGCHLD from " << info->si_pid << llendl; +			LL_INFOS() << "Signal handler - Got SIGCHLD from " << info->si_pid << LL_ENDL;  		}  		// Check result code for all child procs for which we've @@ -765,7 +765,7 @@ void default_unix_signal_handler(int signum, siginfo_t *info, void *)  		// Abort just results in termination of the app, no funky error handling.  		if (LLApp::sLogInSignal)  		{ -			llwarns << "Signal handler - Got SIGABRT, terminating" << llendl; +			LL_WARNS() << "Signal handler - Got SIGABRT, terminating" << LL_ENDL;  		}  		clear_signals();  		raise(signum); @@ -775,7 +775,7 @@ void default_unix_signal_handler(int signum, siginfo_t *info, void *)  	case SIGTERM:  		if (LLApp::sLogInSignal)  		{ -			llwarns << "Signal handler - Got SIGINT, HUP, or TERM, exiting gracefully" << llendl; +			LL_WARNS() << "Signal handler - Got SIGINT, HUP, or TERM, exiting gracefully" << LL_ENDL;  		}  		// Graceful exit  		// Just set our state to quitting, not error @@ -784,7 +784,7 @@ void default_unix_signal_handler(int signum, siginfo_t *info, void *)  			// We're already trying to die, just ignore this signal  			if (LLApp::sLogInSignal)  			{ -				llinfos << "Signal handler - Already trying to quit, ignoring signal!" << llendl; +				LL_INFOS() << "Signal handler - Already trying to quit, ignoring signal!" << LL_ENDL;  			}  			return;  		} @@ -806,7 +806,7 @@ void default_unix_signal_handler(int signum, siginfo_t *info, void *)  				// Smackdown treated just like any other app termination, for now  				if (LLApp::sLogInSignal)  				{ -					llwarns << "Signal handler - Handling smackdown signal!" << llendl; +					LL_WARNS() << "Signal handler - Handling smackdown signal!" << LL_ENDL;  				}  				else  				{ @@ -820,7 +820,7 @@ void default_unix_signal_handler(int signum, siginfo_t *info, void *)  			if (LLApp::sLogInSignal)  			{ -				llwarns << "Signal handler - Handling fatal signal!" << llendl; +				LL_WARNS() << "Signal handler - Handling fatal signal!" << LL_ENDL;  			}  			if (LLApp::isError())  			{ @@ -830,7 +830,7 @@ void default_unix_signal_handler(int signum, siginfo_t *info, void *)  				if (LLApp::sLogInSignal)  				{ -					llwarns << "Signal handler - Got another fatal signal while in the error handler, die now!" << llendl; +					LL_WARNS() << "Signal handler - Got another fatal signal while in the error handler, die now!" << LL_ENDL;  				}  				raise(signum);  				return; @@ -838,13 +838,13 @@ void default_unix_signal_handler(int signum, siginfo_t *info, void *)  			if (LLApp::sLogInSignal)  			{ -				llwarns << "Signal handler - Flagging error status and waiting for shutdown" << llendl; +				LL_WARNS() << "Signal handler - Flagging error status and waiting for shutdown" << LL_ENDL;  			}  			if (LLApp::isCrashloggerDisabled())	// Don't gracefully handle any signal, crash and core for a gdb post mortem  			{  				clear_signals(); -				llwarns << "Fatal signal received, not handling the crash here, passing back to operating system" << llendl; +				LL_WARNS() << "Fatal signal received, not handling the crash here, passing back to operating system" << LL_ENDL;  				raise(signum);  				return;  			}		 @@ -859,7 +859,7 @@ void default_unix_signal_handler(int signum, siginfo_t *info, void *)  			if (LLApp::sLogInSignal)  			{ -				llwarns << "Signal handler - App is stopped, reraising signal" << llendl; +				LL_WARNS() << "Signal handler - App is stopped, reraising signal" << LL_ENDL;  			}  			clear_signals();  			raise(signum); @@ -867,7 +867,7 @@ void default_unix_signal_handler(int signum, siginfo_t *info, void *)  		} else {  			if (LLApp::sLogInSignal)  			{ -				llinfos << "Signal handler - Unhandled signal " << signum << ", ignoring!" << llendl; +				LL_INFOS() << "Signal handler - Unhandled signal " << signum << ", ignoring!" << LL_ENDL;  			}  		}  	} @@ -896,7 +896,7 @@ bool unix_minidump_callback(const google_breakpad::MinidumpDescriptor& minidump_  		--remaining;  	} -	llinfos << "generated minidump: " << LLApp::instance()->getMiniDumpFilename() << llendl; +	LL_INFOS() << "generated minidump: " << LLApp::instance()->getMiniDumpFilename() << LL_ENDL;  	LLApp::runErrorHandler();  #ifndef LL_RELEASE_FOR_DOWNLOAD @@ -942,7 +942,7 @@ bool unix_post_minidump_callback(const char *dump_dir,  		strncpy(path, ".dmp", remaining);  	} -	llinfos << "generated minidump: " << LLApp::instance()->getMiniDumpFilename() << llendl; +	LL_INFOS() << "generated minidump: " << LLApp::instance()->getMiniDumpFilename() << LL_ENDL;  	LLApp::runErrorHandler();  #ifndef LL_RELEASE_FOR_DOWNLOAD @@ -985,16 +985,16 @@ bool windows_post_minidump_callback(const wchar_t* dump_path,  		strncpy(path, ".dmp", remaining);  	} -	llinfos << "generated minidump: " << LLApp::instance()->getMiniDumpFilename() << llendl; +	LL_INFOS() << "generated minidump: " << LLApp::instance()->getMiniDumpFilename() << LL_ENDL;     // *NOTE:Mani - this code is stolen from LLApp, where its never actually used.  	//OSMessageBox("Attach Debugger Now", "Error", OSMB_OK);     // *TODO: Translate the signals/exceptions into cross-platform stuff  	// Windows implementation -	llinfos << "Entering Windows Exception Handler..." << llendl; +	LL_INFOS() << "Entering Windows Exception Handler..." << LL_ENDL;  	if (LLApp::isError())  	{ -		llwarns << "Got another fatal signal while in the error handler, die now!" << llendl; +		LL_WARNS() << "Got another fatal signal while in the error handler, die now!" << LL_ENDL;  	}  	// Flag status to error, so thread_error starts its work diff --git a/indra/llcommon/llapr.cpp b/indra/llcommon/llapr.cpp index b6adb37eba..4346740e47 100755 --- a/indra/llcommon/llapr.cpp +++ b/indra/llcommon/llapr.cpp @@ -446,7 +446,7 @@ S32 LLAPRFile::read(void *buf, S32 nbytes)  {  	if(!mFile)   	{ -		llwarns << "apr mFile is removed by somebody else. Can not read." << llendl ; +		LL_WARNS() << "apr mFile is removed by somebody else. Can not read." << LL_ENDL ;  		return 0;  	} @@ -468,7 +468,7 @@ S32 LLAPRFile::write(const void *buf, S32 nbytes)  {  	if(!mFile)   	{ -		llwarns << "apr mFile is removed by somebody else. Can not write." << llendl ; +		LL_WARNS() << "apr mFile is removed by somebody else. Can not write." << LL_ENDL ;  		return 0;  	} diff --git a/indra/llcommon/llbase32.cpp b/indra/llcommon/llbase32.cpp index 053ac0d32f..349567c90b 100755 --- a/indra/llcommon/llbase32.cpp +++ b/indra/llcommon/llbase32.cpp @@ -231,8 +231,8 @@ std::string LLBase32::encode(const U8* input, size_t input_size)  		size_t encoded = base32_encode(&output[0], output_size, input, input_size); -		llinfos << "encoded " << encoded << " into buffer of size " -			<< output_size << llendl; +		LL_INFOS() << "encoded " << encoded << " into buffer of size " +			<< output_size << LL_ENDL;  	}  	return output;  } diff --git a/indra/llcommon/llbitpack.h b/indra/llcommon/llbitpack.h index fea56a4f1f..f99a354cd4 100755 --- a/indra/llcommon/llbitpack.h +++ b/indra/llcommon/llbitpack.h @@ -165,8 +165,8 @@ public:  #ifdef _DEBUG  					if (mBufferSize > mMaxSize)  					{ -						llerrs << "mBufferSize exceeding mMaxSize" << llendl; -						llerrs << mBufferSize << " > " << mMaxSize << llendl; +						LL_ERRS() << "mBufferSize exceeding mMaxSize" << LL_ENDL; +						LL_ERRS() << mBufferSize << " > " << mMaxSize << LL_ENDL;  					}  #endif  					mLoad = *(mBuffer + mBufferSize++); diff --git a/indra/llcommon/llcrc.cpp b/indra/llcommon/llcrc.cpp index e80da0bb0d..626bb1e564 100755 --- a/indra/llcommon/llcrc.cpp +++ b/indra/llcommon/llcrc.cpp @@ -162,7 +162,7 @@ void LLCRC::update(const std::string& filename)  {  	if (filename.empty())  	{ -		llerrs << "No filename specified" << llendl; +		LL_ERRS() << "No filename specified" << LL_ENDL;  		return;  	} @@ -185,7 +185,7 @@ void LLCRC::update(const std::string& filename)  			if (nread < (size_t) size)  			{ -				llwarns << "Short read on " << filename << llendl; +				LL_WARNS() << "Short read on " << filename << LL_ENDL;  			}  			update(data, nread); diff --git a/indra/llcommon/llcrc.h b/indra/llcommon/llcrc.h index 2d291d92a1..3f41b28ffa 100755 --- a/indra/llcommon/llcrc.h +++ b/indra/llcommon/llcrc.h @@ -41,7 +41,7 @@  //    crc.update(fgetc(fp));  //  }  //  fclose(fp); -//  llinfos << "File crc: " << crc.getCRC() << llendl; +//  LL_INFOS() << "File crc: " << crc.getCRC() << LL_ENDL;  //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  class LL_COMMON_API LLCRC diff --git a/indra/llcommon/lldate.cpp b/indra/llcommon/lldate.cpp index cec4047c1f..cb6f239396 100755 --- a/indra/llcommon/lldate.cpp +++ b/indra/llcommon/lldate.cpp @@ -63,8 +63,8 @@ LLDate::LLDate(const std::string& iso8601_date)  {  	if(!fromString(iso8601_date))  	{ -		llwarns << "date " << iso8601_date << " failed to parse; " -			<< "ZEROING IT OUT" << llendl; +		LL_WARNS() << "date " << iso8601_date << " failed to parse; " +			<< "ZEROING IT OUT" << LL_ENDL;  		mSecondsSinceEpoch = DATE_EPOCH;  	}  } diff --git a/indra/llcommon/lldictionary.h b/indra/llcommon/lldictionary.h index c752859a36..5800ec5e5d 100755 --- a/indra/llcommon/lldictionary.h +++ b/indra/llcommon/lldictionary.h @@ -89,7 +89,7 @@ protected:  	{  		if (lookup(index))  		{ -			llerrs << "Dictionary entry already added (attempted to add duplicate entry)" << llendl; +			LL_ERRS() << "Dictionary entry already added (attempted to add duplicate entry)" << LL_ENDL;  		}  		(*this)[index] = entry;  	} diff --git a/indra/llcommon/llerror.cpp b/indra/llcommon/llerror.cpp index 947aa11e94..652d0e212a 100755 --- a/indra/llcommon/llerror.cpp +++ b/indra/llcommon/llerror.cpp @@ -321,9 +321,9 @@ namespace  			if (configuration.isUndefined())  			{ -				llwarns << filename() << " missing, ill-formed," +				LL_WARNS() << filename() << " missing, ill-formed,"  							" or simply undefined; not changing configuration" -						<< llendl; +						<< LL_ENDL;  				return false;  			}  		} diff --git a/indra/llcommon/llerror.h b/indra/llcommon/llerror.h index 40495b8c7d..ef25a0173c 100755 --- a/indra/llcommon/llerror.h +++ b/indra/llcommon/llerror.h @@ -350,11 +350,11 @@ typedef LLError::NoClassInfo _LL_CLASS_TO_LOG;  // DEPRECATED: Use the new macros that allow tags and *look* like macros. -#define lldebugs	LL_DEBUGS() +//#define lldebugs	LL_DEBUGS()  #define llinfos		LL_INFOS() -#define llwarns		LL_WARNS() -#define llerrs		LL_ERRS() -#define llcont		LL_CONT +//#define llwarns		LL_WARNS() +//#define llerrs		LL_ERRS() +//#define llcont		LL_CONT  #define llendl		LL_ENDL   #endif // LL_LLERROR_H diff --git a/indra/llcommon/llerrorthread.cpp b/indra/llcommon/llerrorthread.cpp index 950fcd6e83..d461f31bbc 100755 --- a/indra/llcommon/llerrorthread.cpp +++ b/indra/llcommon/llerrorthread.cpp @@ -65,7 +65,7 @@ void get_child_status(const int waitpid_status, int &process_status, bool &exite  		exited = true;  		if (do_logging)  		{ -			llinfos << "get_child_status - Child exited cleanly with return of " << process_status << llendl; +			LL_INFOS() << "get_child_status - Child exited cleanly with return of " << process_status << LL_ENDL;  		}  		return;  	} @@ -75,15 +75,15 @@ void get_child_status(const int waitpid_status, int &process_status, bool &exite  		exited = true;  		if (do_logging)  		{ -			llinfos << "get_child_status - Child died because of uncaught signal " << process_status << llendl; +			LL_INFOS() << "get_child_status - Child died because of uncaught signal " << process_status << LL_ENDL;  #ifdef WCOREDUMP  			if (WCOREDUMP(waitpid_status))  			{ -				llinfos << "get_child_status - Child dumped core" << llendl; +				LL_INFOS() << "get_child_status - Child dumped core" << LL_ENDL;  			}  			else  			{ -				llinfos << "get_child_status - Child didn't dump core" << llendl; +				LL_INFOS() << "get_child_status - Child didn't dump core" << LL_ENDL;  			}  #endif  		} @@ -93,7 +93,7 @@ void get_child_status(const int waitpid_status, int &process_status, bool &exite  	{  		// This is weird.  I just dump the waitpid status into the status code,  		// not that there's any way of telling what it is... -		llinfos << "get_child_status - Got SIGCHILD but child didn't exit" << llendl; +		LL_INFOS() << "get_child_status - Got SIGCHILD but child didn't exit" << LL_ENDL;  		process_status = waitpid_status;  	} @@ -106,7 +106,7 @@ void LLErrorThread::run()  	// This thread sits and waits for the sole purpose  	// of waiting for the signal/exception handlers to flag the  	// application state as APP_STATUS_ERROR. -	llinfos << "thread_error - Waiting for an error" << llendl; +	LL_INFOS() << "thread_error - Waiting for an error" << LL_ENDL;  	S32 counter = 0;  #if !LL_WINDOWS @@ -124,7 +124,7 @@ void LLErrorThread::run()  			last_sig_child_count = current_sig_child_count;  			if (LLApp::sLogInSignal)  			{ -				llinfos << "thread_error handling SIGCHLD #" << current_sig_child_count << llendl; +				LL_INFOS() << "thread_error handling SIGCHLD #" << current_sig_child_count << LL_ENDL;  			}  			for (LLApp::child_map::iterator iter = LLApp::sChildMap.begin(); iter != LLApp::sChildMap.end();)  			{ @@ -141,7 +141,7 @@ void LLErrorThread::run()  					{  						if (LLApp::sLogInSignal)  						{ -							llinfos << "Signal handler - Running child callback" << llendl; +							LL_INFOS() << "Signal handler - Running child callback" << LL_ENDL;  						}  						child_info.mCallback(child_pid, exited, status);  					} @@ -172,7 +172,7 @@ void LLErrorThread::run()  					{  						if (LLApp::sLogInSignal)  						{ -							llinfos << "Signal handler - Running default child callback" << llendl; +							LL_INFOS() << "Signal handler - Running default child callback" << LL_ENDL;  						}  						LLApp::sDefaultChildCallback(child_pid, true, status);  					} @@ -188,17 +188,17 @@ void LLErrorThread::run()  	if (LLApp::isError())  	{  		// The app is in an error state, run the application's error handler. -		//llinfos << "thread_error - An error has occurred, running error callback!" << llendl; +		//LL_INFOS() << "thread_error - An error has occurred, running error callback!" << LL_ENDL;  		// Run the error handling callback  		LLApp::runErrorHandler();  	}  	else  	{  		// Everything is okay, a clean exit. -		//llinfos << "thread_error - Application exited cleanly" << llendl; +		//LL_INFOS() << "thread_error - Application exited cleanly" << LL_ENDL;  	} -	//llinfos << "thread_error - Exiting" << llendl; +	//LL_INFOS() << "thread_error - Exiting" << LL_ENDL;  	LLApp::sErrorThreadRunning = FALSE;  } diff --git a/indra/llcommon/llfasttimer.cpp b/indra/llcommon/llfasttimer.cpp index 3b17b6022c..8f86a1dfbc 100755 --- a/indra/llcommon/llfasttimer.cpp +++ b/indra/llcommon/llfasttimer.cpp @@ -400,7 +400,7 @@ void TimeBlock::dumpCurTimes()  			<< std::setprecision(3) << total_time.valueInUnits<LLUnits::Milliseconds>() << " ms, "  			<< num_calls << " calls"; -		llinfos << out_str.str() << llendl; +		LL_INFOS() << out_str.str() << LL_ENDL;  	}  } diff --git a/indra/llcommon/llformat.h b/indra/llcommon/llformat.h index a4ec5e01de..fb8e7cd045 100755 --- a/indra/llcommon/llformat.h +++ b/indra/llcommon/llformat.h @@ -29,7 +29,7 @@  #define LL_LLFORMAT_H  // Use as follows: -// llinfos << llformat("Test:%d (%.2f %.2f)", idx, x, y) << llendl; +// LL_INFOS() << llformat("Test:%d (%.2f %.2f)", idx, x, y) << LL_ENDL;  //  // *NOTE: buffer limited to 1024, (but vsnprintf prevents overrun)  // should perhaps be replaced with boost::format. diff --git a/indra/llcommon/llframetimer.cpp b/indra/llcommon/llframetimer.cpp index ec64195b21..1af2cb8afd 100755 --- a/indra/llcommon/llframetimer.cpp +++ b/indra/llcommon/llframetimer.cpp @@ -115,10 +115,10 @@ F64 LLFrameTimer::expiresAt() const  BOOL LLFrameTimer::checkExpirationAndReset(F32 expiration)  { -	//llinfos << "LLFrameTimer::checkExpirationAndReset()" << llendl; -	//llinfos << "  mStartTime:" << mStartTime << llendl; -	//llinfos << "  sFrameTime:" << sFrameTime << llendl; -	//llinfos << "  mExpiry:   " <<  mExpiry << llendl; +	//LL_INFOS() << "LLFrameTimer::checkExpirationAndReset()" << LL_ENDL; +	//LL_INFOS() << "  mStartTime:" << mStartTime << LL_ENDL; +	//LL_INFOS() << "  sFrameTime:" << sFrameTime << LL_ENDL; +	//LL_INFOS() << "  mExpiry:   " <<  mExpiry << LL_ENDL;  	if(hasExpired())  	{ diff --git a/indra/llcommon/llheartbeat.cpp b/indra/llcommon/llheartbeat.cpp index 18a0c489bd..19b7452748 100755 --- a/indra/llcommon/llheartbeat.cpp +++ b/indra/llcommon/llheartbeat.cpp @@ -98,7 +98,7 @@ LLHeartbeat::rawSendWithTimeout(F32 timeout_sec)  	mTimeoutTimer.setTimerExpirySec(timeout_sec);  	do {  		result = rawSend(); -		//llinfos << " HEARTSENDc=" << result << llendl; +		//LL_INFOS() << " HEARTSENDc=" << result << LL_ENDL;  	} while (result==1 && !mTimeoutTimer.hasExpired());  	return result; @@ -118,7 +118,7 @@ LLHeartbeat::send(F32 timeout_sec)  			// zero-timeout; we don't care too much whether our  			// heartbeat was digested.  			result = rawSend(); -			//llinfos << " HEARTSENDb=" << result << llendl; +			//LL_INFOS() << " HEARTSENDb=" << result << LL_ENDL;  		}  	} @@ -146,14 +146,14 @@ LLHeartbeat::send(F32 timeout_sec)  		// It's been ages since we successfully had a heartbeat  		// digested by the watchdog.  Sit here and spin a while  		// in the hope that we can force it through. -		llwarns << "Unable to deliver heartbeat to launcher for " << mPanicTimer.getElapsedTimeF32() << " seconds.  Going to try very hard for up to " << mAggressiveHeartbeatMaxBlockingSecs << " seconds." << llendl; +		LL_WARNS() << "Unable to deliver heartbeat to launcher for " << mPanicTimer.getElapsedTimeF32() << " seconds.  Going to try very hard for up to " << mAggressiveHeartbeatMaxBlockingSecs << " seconds." << LL_ENDL;  		result = rawSendWithTimeout(mAggressiveHeartbeatMaxBlockingSecs);  		if (result == 0) {  			total_success = true;  		} else {  			// we couldn't even force it through.  That's bad,  			// but we'll try again in a while. -			llwarns << "Could not deliver heartbeat to launcher even after trying very hard for " << mAggressiveHeartbeatMaxBlockingSecs << " seconds." << llendl; +			LL_WARNS() << "Could not deliver heartbeat to launcher even after trying very hard for " << mAggressiveHeartbeatMaxBlockingSecs << " seconds." << LL_ENDL;  		}  		// in any case, reset the panic timer. diff --git a/indra/llcommon/llliveappconfig.cpp b/indra/llcommon/llliveappconfig.cpp index 3a3dfa9f28..7c87c5a1a0 100755 --- a/indra/llcommon/llliveappconfig.cpp +++ b/indra/llcommon/llliveappconfig.cpp @@ -47,8 +47,8 @@ LLLiveAppConfig::~LLLiveAppConfig()  // virtual   bool LLLiveAppConfig::loadFile()  { -	llinfos << "LLLiveAppConfig::loadFile(): reading from " -		<< filename() << llendl; +	LL_INFOS() << "LLLiveAppConfig::loadFile(): reading from " +		<< filename() << LL_ENDL;      llifstream file(filename());  	LLSD config;      if (file.is_open()) @@ -56,15 +56,15 @@ bool LLLiveAppConfig::loadFile()          LLSDSerialize::fromXML(config, file);  		if(!config.isMap())  		{ -			llwarns << "Live app config not an map in " << filename() -				<< " Ignoring the data." << llendl; +			LL_WARNS() << "Live app config not an map in " << filename() +				<< " Ignoring the data." << LL_ENDL;  			return false;  		}  		file.close();      }  	else  	{ -		llinfos << "Live file " << filename() << " does not exit." << llendl; +		LL_INFOS() << "Live file " << filename() << " does not exit." << LL_ENDL;  	}  	// *NOTE: we do not handle the else case here because we would not  	// have attempted to load the file unless LLLiveFile had diff --git a/indra/llcommon/llmemory.cpp b/indra/llcommon/llmemory.cpp index 3fe7470d06..a9256124f2 100755 --- a/indra/llcommon/llmemory.cpp +++ b/indra/llcommon/llmemory.cpp @@ -64,7 +64,7 @@ void ll_assert_aligned_func(uintptr_t ptr,U32 alignment)  	// Redundant, place to set breakpoints.  	if (ptr%alignment!=0)  	{ -		llwarns << "alignment check failed" << llendl; +		LL_WARNS() << "alignment check failed" << LL_ENDL;  	}  	llassert(ptr%alignment==0);  #endif @@ -109,7 +109,7 @@ void LLMemory::updateMemoryInfo()  	if (!GetProcessMemoryInfo(self, &counters, sizeof(counters)))  	{ -		llwarns << "GetProcessMemoryInfo failed" << llendl; +		LL_WARNS() << "GetProcessMemoryInfo failed" << LL_ENDL;  		return ;  	} @@ -153,7 +153,7 @@ void* LLMemory::tryToAlloc(void* address, U32 size)  	{  		if(!VirtualFree(address, 0, MEM_RELEASE))  		{ -			llerrs << "error happens when free some memory reservation." << llendl ; +			LL_ERRS() << "error happens when free some memory reservation." << LL_ENDL ;  		}  	}  	return address ; @@ -171,14 +171,14 @@ void LLMemory::logMemoryInfo(BOOL update)  		LLPrivateMemoryPoolManager::getInstance()->updateStatistics() ;  	} -	llinfos << "Current allocated physical memory(KB): " << sAllocatedMemInKB << llendl ; -	llinfos << "Current allocated page size (KB): " << sAllocatedPageSizeInKB << llendl ; -	llinfos << "Current availabe physical memory(KB): " << sAvailPhysicalMemInKB << llendl ; -	llinfos << "Current max usable memory(KB): " << sMaxPhysicalMemInKB << llendl ; +	LL_INFOS() << "Current allocated physical memory(KB): " << sAllocatedMemInKB << LL_ENDL ; +	LL_INFOS() << "Current allocated page size (KB): " << sAllocatedPageSizeInKB << LL_ENDL ; +	LL_INFOS() << "Current availabe physical memory(KB): " << sAvailPhysicalMemInKB << LL_ENDL ; +	LL_INFOS() << "Current max usable memory(KB): " << sMaxPhysicalMemInKB << LL_ENDL ; -	llinfos << "--- private pool information -- " << llendl ; -	llinfos << "Total reserved (KB): " << LLPrivateMemoryPoolManager::getInstance()->mTotalReservedSize / 1024 << llendl ; -	llinfos << "Total allocated (KB): " << LLPrivateMemoryPoolManager::getInstance()->mTotalAllocatedSize / 1024 << llendl ; +	LL_INFOS() << "--- private pool information -- " << LL_ENDL ; +	LL_INFOS() << "Total reserved (KB): " << LLPrivateMemoryPoolManager::getInstance()->mTotalReservedSize / 1024 << LL_ENDL ; +	LL_INFOS() << "Total allocated (KB): " << LLPrivateMemoryPoolManager::getInstance()->mTotalAllocatedSize / 1024 << LL_ENDL ;  }  //return 0: everything is normal; @@ -260,7 +260,7 @@ U64 LLMemory::getCurrentRSS()  	if (!GetProcessMemoryInfo(self, &counters, sizeof(counters)))  	{ -		llwarns << "GetProcessMemoryInfo failed" << llendl; +		LL_WARNS() << "GetProcessMemoryInfo failed" << LL_ENDL;  		return 0;  	} @@ -298,7 +298,7 @@ U32 LLMemory::getWorkingSetSize()  // 	if (sysctl(ctl, 2, &page_size, &size, NULL, 0) == -1)  // 	{ -// 		llwarns << "Couldn't get page size" << llendl; +// 		LL_WARNS() << "Couldn't get page size" << LL_ENDL;  // 		return 0;  // 	} else {  // 		return page_size; @@ -317,11 +317,11 @@ U64 LLMemory::getCurrentRSS()  		// If we ever wanted it, the process virtual size is also available as:  		// virtualSize = basicInfo.virtual_size; -//		llinfos << "resident size is " << residentSize << llendl; +//		LL_INFOS() << "resident size is " << residentSize << LL_ENDL;  	}  	else  	{ -		llwarns << "task_info failed" << llendl; +		LL_WARNS() << "task_info failed" << LL_ENDL;  	}  	return residentSize; @@ -342,7 +342,7 @@ U64 LLMemory::getCurrentRSS()  	if (fp == NULL)  	{ -		llwarns << "couldn't open " << statPath << llendl; +		LL_WARNS() << "couldn't open " << statPath << LL_ENDL;  		goto bail;  	} @@ -355,7 +355,7 @@ U64 LLMemory::getCurrentRSS()  						 &rss);  		if (ret != 1)  		{ -			llwarns << "couldn't parse contents of " << statPath << llendl; +			LL_WARNS() << "couldn't parse contents of " << statPath << LL_ENDL;  			rss = 0;  		}  	} @@ -385,12 +385,12 @@ U64 LLMemory::getCurrentRSS()  	sprintf(path, "/proc/%d/psinfo", (int)getpid());  	int proc_fd = -1;  	if((proc_fd = open(path, O_RDONLY)) == -1){ -		llwarns << "LLmemory::getCurrentRSS() unable to open " << path << ". Returning 0 RSS!" << llendl; +		LL_WARNS() << "LLmemory::getCurrentRSS() unable to open " << path << ". Returning 0 RSS!" << LL_ENDL;  		return 0;  	}  	psinfo_t proc_psinfo;  	if(read(proc_fd, &proc_psinfo, sizeof(psinfo_t)) != sizeof(psinfo_t)){ -		llwarns << "LLmemory::getCurrentRSS() Unable to read from " << path << ". Returning 0 RSS!" << llendl; +		LL_WARNS() << "LLmemory::getCurrentRSS() Unable to read from " << path << ". Returning 0 RSS!" << LL_ENDL;  		close(proc_fd);  		return 0;  	} @@ -823,7 +823,7 @@ void LLPrivateMemoryPool::LLMemoryChunk::dump()  		total_size += blk_list[i]->getBufferSize() ;  		if((U32)blk_list[i]->getBuffer() < (U32)blk_list[i-1]->getBuffer() + blk_list[i-1]->getBufferSize())  		{ -			llerrs << "buffer corrupted." << llendl ; +			LL_ERRS() << "buffer corrupted." << LL_ENDL ;  		}  	} @@ -844,32 +844,32 @@ void LLPrivateMemoryPool::LLMemoryChunk::dump()  		}  		else  		{ -			llerrs << "gap happens" << llendl ; +			LL_ERRS() << "gap happens" << LL_ENDL ;  		}  	}  #endif  #if 0 -	llinfos << "---------------------------" << llendl ; -	llinfos << "Chunk buffer: " << (U32)getBuffer() << " size: " << getBufferSize() << llendl ; +	LL_INFOS() << "---------------------------" << LL_ENDL ; +	LL_INFOS() << "Chunk buffer: " << (U32)getBuffer() << " size: " << getBufferSize() << LL_ENDL ; -	llinfos << "available blocks ... " << llendl ; +	LL_INFOS() << "available blocks ... " << LL_ENDL ;  	for(S32 i = 0 ; i < mBlockLevels ; i++)  	{  		LLMemoryBlock* blk = mAvailBlockList[i] ;  		while(blk)  		{ -			llinfos << "blk buffer " << (U32)blk->getBuffer() << " size: " << blk->getBufferSize() << llendl ; +			LL_INFOS() << "blk buffer " << (U32)blk->getBuffer() << " size: " << blk->getBufferSize() << LL_ENDL ;  			blk = blk->mNext ;  		}  	} -	llinfos << "free blocks ... " << llendl ; +	LL_INFOS() << "free blocks ... " << LL_ENDL ;  	for(S32 i = 0 ; i < mPartitionLevels ; i++)  	{  		LLMemoryBlock* blk = mFreeSpaceList[i] ;  		while(blk)  		{ -			llinfos << "blk buffer " << (U32)blk->getBuffer() << " size: " << blk->getBufferSize() << llendl ; +			LL_INFOS() << "blk buffer " << (U32)blk->getBuffer() << " size: " << blk->getBufferSize() << LL_ENDL ;  			blk = blk->mNext ;  		}  	} @@ -1265,7 +1265,7 @@ char* LLPrivateMemoryPool::allocate(U32 size)  		if(to_log)  		{ -			llwarns << "The memory pool overflows, now using heap directly!" << llendl ; +			LL_WARNS() << "The memory pool overflows, now using heap directly!" << LL_ENDL ;  			to_log = false ;  		} @@ -1358,7 +1358,7 @@ void  LLPrivateMemoryPool::destroyPool()  	if(mNumOfChunks > 0)  	{ -		llwarns << "There is some memory not freed when destroy the memory pool!" << llendl ; +		LL_WARNS() << "There is some memory not freed when destroy the memory pool!" << LL_ENDL ;  	}  	mNumOfChunks = 0 ; @@ -1376,11 +1376,11 @@ bool LLPrivateMemoryPool::checkSize(U32 asked_size)  {  	if(mReservedPoolSize + asked_size > mMaxPoolSize)  	{ -		llinfos << "Max pool size: " << mMaxPoolSize << llendl ; -		llinfos << "Total reserved size: " << mReservedPoolSize + asked_size << llendl ; -		llinfos << "Total_allocated Size: " << getTotalAllocatedSize() << llendl ; +		LL_INFOS() << "Max pool size: " << mMaxPoolSize << LL_ENDL ; +		LL_INFOS() << "Total reserved size: " << mReservedPoolSize + asked_size << LL_ENDL ; +		LL_INFOS() << "Total_allocated Size: " << getTotalAllocatedSize() << LL_ENDL ; -		//llerrs << "The pool is overflowing..." << llendl ; +		//LL_ERRS() << "The pool is overflowing..." << LL_ENDL ;  		return false ;  	} @@ -1593,7 +1593,7 @@ void LLPrivateMemoryPool::removeFromHashTable(LLMemoryChunk* chunk)  void LLPrivateMemoryPool::rehash()  { -	llinfos << "new hash factor: " << mHashFactor << llendl ; +	LL_INFOS() << "new hash factor: " << mHashFactor << LL_ENDL ;  	mChunkHashList.clear() ;  	mChunkHashList.resize(mHashFactor) ; @@ -1673,7 +1673,7 @@ void LLPrivateMemoryPool::LLChunkHashElement::remove(LLPrivateMemoryPool::LLMemo  	}  	else  	{ -		llerrs << "This slot does not contain this chunk!" << llendl ; +		LL_ERRS() << "This slot does not contain this chunk!" << LL_ENDL ;  	}  } @@ -1705,12 +1705,12 @@ LLPrivateMemoryPoolManager::~LLPrivateMemoryPoolManager()  #if __DEBUG_PRIVATE_MEM__  	if(!sMemAllocationTracker.empty())  	{ -		llwarns << "there is potential memory leaking here. The list of not freed memory blocks are from: " <<llendl ; +		LL_WARNS() << "there is potential memory leaking here. The list of not freed memory blocks are from: " <<LL_ENDL ;  		S32 k = 0 ;  		for(mem_allocation_info_t::iterator iter = sMemAllocationTracker.begin() ; iter != sMemAllocationTracker.end() ; ++iter)  		{ -			llinfos << k++ << ", " << (U32)iter->first << " : " << iter->second << llendl ; +			LL_INFOS() << k++ << ", " << (U32)iter->first << " : " << iter->second << LL_ENDL ;  		}  		sMemAllocationTracker.clear() ;  	} @@ -1906,7 +1906,7 @@ void  LLPrivateMemoryPoolManager::freeMem(LLPrivateMemoryPool* poolp, void* addr  		}  		else  		{ -			llerrs << "private pool is used before initialized.!" << llendl ; +			LL_ERRS() << "private pool is used before initialized.!" << LL_ENDL ;  		}  	}	  } @@ -1980,7 +1980,7 @@ void LLPrivateMemoryPoolTester::test(U32 min_size, U32 max_size, U32 stride, U32  	//allocate space for p ;  	if(!(p = ::new char**[times]) || !(*p = ::new char*[times * levels]))  	{ -		llerrs << "memory initialization for p failed" << llendl ; +		LL_ERRS() << "memory initialization for p failed" << LL_ENDL ;  	}  	//init @@ -2052,8 +2052,8 @@ void LLPrivateMemoryPoolTester::testAndTime(U32 size, U32 times)  {  	LLTimer timer ; -	llinfos << " -**********************- " << llendl ; -	llinfos << "test size: " << size << " test times: " << times << llendl ; +	LL_INFOS() << " -**********************- " << LL_ENDL ; +	LL_INFOS() << "test size: " << size << " test times: " << times << LL_ENDL ;  	timer.reset() ;  	char** p = new char*[times] ; @@ -2065,7 +2065,7 @@ void LLPrivateMemoryPoolTester::testAndTime(U32 size, U32 times)  		p[i] = ALLOCATE_MEM(sPool, size) ;  		if(!p[i])  		{ -			llerrs << "allocation failed" << llendl ; +			LL_ERRS() << "allocation failed" << LL_ENDL ;  		}  	}  	//de-allocation @@ -2074,7 +2074,7 @@ void LLPrivateMemoryPoolTester::testAndTime(U32 size, U32 times)  		FREE_MEM(sPool, p[i]) ;  		p[i] = NULL ;  	} -	llinfos << "time spent using customized memory pool: " << timer.getElapsedTimeF32() << llendl ; +	LL_INFOS() << "time spent using customized memory pool: " << timer.getElapsedTimeF32() << LL_ENDL ;  	timer.reset() ; @@ -2085,7 +2085,7 @@ void LLPrivateMemoryPoolTester::testAndTime(U32 size, U32 times)  		p[i] = ::new char[size] ;  		if(!p[i])  		{ -			llerrs << "allocation failed" << llendl ; +			LL_ERRS() << "allocation failed" << LL_ENDL ;  		}  	}  	//de-allocation @@ -2094,7 +2094,7 @@ void LLPrivateMemoryPoolTester::testAndTime(U32 size, U32 times)  		::delete[] p[i] ;  		p[i] = NULL ;  	} -	llinfos << "time spent using standard allocator/de-allocator: " << timer.getElapsedTimeF32() << llendl ; +	LL_INFOS() << "time spent using standard allocator/de-allocator: " << timer.getElapsedTimeF32() << LL_ENDL ;  	delete[] p;  } diff --git a/indra/llcommon/llmemorystream.cpp b/indra/llcommon/llmemorystream.cpp index 723d94f025..707ac8fd0f 100755 --- a/indra/llcommon/llmemorystream.cpp +++ b/indra/llcommon/llmemorystream.cpp @@ -45,7 +45,7 @@ void LLMemoryStreamBuf::reset(const U8* start, S32 length)  int LLMemoryStreamBuf::underflow()  { -	//lldebugs << "LLMemoryStreamBuf::underflow()" << llendl; +	//LL_DEBUGS() << "LLMemoryStreamBuf::underflow()" << LL_ENDL;  	if(gptr() < egptr())  	{  		return *gptr(); diff --git a/indra/llcommon/llmetricperformancetester.cpp b/indra/llcommon/llmetricperformancetester.cpp index fd89cb818a..88287e5786 100755 --- a/indra/llcommon/llmetricperformancetester.cpp +++ b/indra/llcommon/llmetricperformancetester.cpp @@ -56,7 +56,7 @@ BOOL LLMetricPerformanceTesterBasic::addTester(LLMetricPerformanceTesterBasic* t  	std::string name = tester->getTesterName() ;  	if (getTester(name))  	{ -		llerrs << "Tester name is already used by some other tester : " << name << llendl ; +		LL_ERRS() << "Tester name is already used by some other tester : " << name << LL_ENDL ;  		return FALSE;  	} @@ -136,7 +136,7 @@ void LLMetricPerformanceTesterBasic::doAnalysisMetrics(std::string baseline, std  	std::ifstream target_is(target.c_str());  	if (!base_is.is_open() || !target_is.is_open())  	{ -		llwarns << "'-analyzeperformance' error : baseline or current target file inexistent" << llendl; +		LL_WARNS() << "'-analyzeperformance' error : baseline or current target file inexistent" << LL_ENDL;  		base_is.close();  		target_is.close();  		return; @@ -176,7 +176,7 @@ LLMetricPerformanceTesterBasic::LLMetricPerformanceTesterBasic(std::string name)  {  	if (mName == std::string())  	{ -		llerrs << "LLMetricPerformanceTesterBasic construction invalid : Empty name passed to constructor" << llendl ; +		LL_ERRS() << "LLMetricPerformanceTesterBasic construction invalid : Empty name passed to constructor" << LL_ENDL ;  	}  	mValidInstance = LLMetricPerformanceTesterBasic::addTester(this) ; @@ -241,7 +241,7 @@ void LLMetricPerformanceTesterBasic::analyzePerformance(std::ofstream* os, LLSD*  						(F32)((*base)[label][ mMetricStrings[index] ].asReal()), (F32)((*current)[label][ mMetricStrings[index] ].asReal())) ;  					break;  				default: -					llerrs << "unsupported metric " << mMetricStrings[index] << " LLSD type: " << (S32)(*current)[label][ mMetricStrings[index] ].type() << llendl ; +					LL_ERRS() << "unsupported metric " << mMetricStrings[index] << " LLSD type: " << (S32)(*current)[label][ mMetricStrings[index] ].type() << LL_ENDL ;  				}  			}	  		} @@ -305,7 +305,7 @@ void LLMetricPerformanceTesterWithSession::analyzePerformance(std::ofstream* os,  	if (!mBaseSessionp || !mCurrentSessionp)  	{ -		llerrs << "Error loading test sessions." << llendl ; +		LL_ERRS() << "Error loading test sessions." << LL_ENDL ;  	}  	// Compare diff --git a/indra/llcommon/llmetrics.cpp b/indra/llcommon/llmetrics.cpp index 3078139f43..d40afe5160 100755 --- a/indra/llcommon/llmetrics.cpp +++ b/indra/llcommon/llmetrics.cpp @@ -65,7 +65,7 @@ void LLMetricsImpl::recordEventDetails(const std::string& location,  	metrics["location"] = location;  	metrics["stats"]  = stats; -	llinfos << "LLMETRICS: " << (LLSDNotationStreamer(metrics)) << llendl;  +	LL_INFOS() << "LLMETRICS: " << (LLSDNotationStreamer(metrics)) << LL_ENDL;   }  // Store this: @@ -128,7 +128,7 @@ void LLMetricsImpl::printTotals(LLSD metadata)  	out_sd["stats"] = stats; -	llinfos << "LLMETRICS: AGGREGATE: " << LLSDOStreamer<LLSDNotationFormatter>(out_sd) << llendl; +	LL_INFOS() << "LLMETRICS: AGGREGATE: " << LLSDOStreamer<LLSDNotationFormatter>(out_sd) << LL_ENDL;  }  LLMetrics::LLMetrics() diff --git a/indra/llcommon/llmetrics.h b/indra/llcommon/llmetrics.h index 4f0ae56338..85a6986049 100755 --- a/indra/llcommon/llmetrics.h +++ b/indra/llcommon/llmetrics.h @@ -38,7 +38,7 @@ public:  	LLMetrics();  	virtual ~LLMetrics(); -	// Adds this event to aggregate totals and records details to syslog (llinfos) +	// Adds this event to aggregate totals and records details to syslog (LL_INFOS())  	virtual void recordEventDetails(const std::string& location,   						const std::string& mesg,   						bool success,  diff --git a/indra/llcommon/llmutex.cpp b/indra/llcommon/llmutex.cpp index ad0287c6d5..252bbd6cd1 100644 --- a/indra/llcommon/llmutex.cpp +++ b/indra/llcommon/llmutex.cpp @@ -82,7 +82,7 @@ void LLMutex::lock()  	// Have to have the lock before we can access the debug info  	U32 id = LLThread::currentID();  	if (mIsLocked[id] != FALSE) -		llerrs << "Already locked in Thread: " << id << llendl; +		LL_ERRS() << "Already locked in Thread: " << id << LL_ENDL;  	mIsLocked[id] = TRUE;  #endif @@ -101,7 +101,7 @@ void LLMutex::unlock()  	// Access the debug info while we have the lock  	U32 id = LLThread::currentID();  	if (mIsLocked[id] != TRUE) -		llerrs << "Not locked in Thread: " << id << llendl;	 +		LL_ERRS() << "Not locked in Thread: " << id << LL_ENDL;	  	mIsLocked[id] = FALSE;  #endif diff --git a/indra/llcommon/llpointer.h b/indra/llcommon/llpointer.h index e09741b0ec..c9ebc70d19 100755 --- a/indra/llcommon/llpointer.h +++ b/indra/llcommon/llpointer.h @@ -156,7 +156,7 @@ protected:  			temp->unref();  			if (mPointer != NULL)  			{ -				llwarns << "Unreference did assignment to non-NULL because of destructor" << llendl; +				LL_WARNS() << "Unreference did assignment to non-NULL because of destructor" << LL_ENDL;  				unref();  			}  		} diff --git a/indra/llcommon/llpriqueuemap.h b/indra/llcommon/llpriqueuemap.h index da997c7b04..d8d3edd48a 100755 --- a/indra/llcommon/llpriqueuemap.h +++ b/indra/llcommon/llpriqueuemap.h @@ -84,7 +84,7 @@ public:  		pqm_iter iter = mMap.find(LLPQMKey<DATA_TYPE>(priority, data));  		if (iter != mMap.end())  		{ -			llerrs << "Pushing already existing data onto queue!" << llendl; +			LL_ERRS() << "Pushing already existing data onto queue!" << LL_ENDL;  		}  #endif  		mMap.insert(pqm_pair(LLPQMKey<DATA_TYPE>(priority, data), data)); @@ -112,14 +112,14 @@ public:  		iter = mMap.find(cur_key);  		if (iter == mMap.end())  		{ -			llwarns << "Data not on priority queue!" << llendl; +			LL_WARNS() << "Data not on priority queue!" << LL_ENDL;  			// OK, try iterating through all of the data and seeing if we just screwed up the priority  			// somehow.  			for (iter = mMap.begin(); iter != mMap.end(); iter++)  			{  				if ((*(iter)).second == data)  				{ -					llerrs << "Data on priority queue but priority not matched!" << llendl; +					LL_ERRS() << "Data on priority queue but priority not matched!" << LL_ENDL;  				}  			}  			return; diff --git a/indra/llcommon/llprocessor.cpp b/indra/llcommon/llprocessor.cpp index b80e813d84..80b86153e4 100755 --- a/indra/llcommon/llprocessor.cpp +++ b/indra/llcommon/llprocessor.cpp @@ -700,7 +700,7 @@ private:  		__cpuid(0x1, eax, ebx, ecx, edx);  		if(feature_infos[0] != (S32)edx)  		{ -			llerrs << "machdep.cpu.feature_bits doesn't match expected cpuid result!" << llendl; +			LL_ERRS() << "machdep.cpu.feature_bits doesn't match expected cpuid result!" << LL_ENDL;  		}   #endif // LL_RELEASE_FOR_DOWNLOAD 	 diff --git a/indra/llcommon/llqueuedthread.cpp b/indra/llcommon/llqueuedthread.cpp index 3689c4728e..176761c17c 100755 --- a/indra/llcommon/llqueuedthread.cpp +++ b/indra/llcommon/llqueuedthread.cpp @@ -81,7 +81,7 @@ void LLQueuedThread::shutdown()  		}  		if (timeout == 0)  		{ -			llwarns << "~LLQueuedThread (" << mName << ") timed out!" << llendl; +			LL_WARNS() << "~LLQueuedThread (" << mName << ") timed out!" << LL_ENDL;  		}  	}  	else @@ -102,7 +102,7 @@ void LLQueuedThread::shutdown()  	}  	if (active_count)  	{ -		llwarns << "~LLQueuedThread() called with active requests: " << active_count << llendl; +		LL_WARNS() << "~LLQueuedThread() called with active requests: " << active_count << LL_ENDL;  	}  } @@ -199,11 +199,11 @@ void LLQueuedThread::printQueueStats()  	if (!mRequestQueue.empty())  	{  		QueuedRequest *req = *mRequestQueue.begin(); -		llinfos << llformat("Pending Requests:%d Current status:%d", mRequestQueue.size(), req->getStatus()) << llendl; +		LL_INFOS() << llformat("Pending Requests:%d Current status:%d", mRequestQueue.size(), req->getStatus()) << LL_ENDL;  	}  	else  	{ -		llinfos << "Queued Thread Idle" << llendl; +		LL_INFOS() << "Queued Thread Idle" << LL_ENDL;  	}  	unlockData();  } @@ -234,7 +234,7 @@ bool LLQueuedThread::addRequest(QueuedRequest* req)  	mRequestQueue.insert(req);  	mRequestHash.insert(req);  #if _DEBUG -// 	llinfos << llformat("LLQueuedThread::Added req [%08d]",handle) << llendl; +// 	LL_INFOS() << llformat("LLQueuedThread::Added req [%08d]",handle) << LL_ENDL;  #endif  	unlockData(); @@ -365,7 +365,7 @@ bool LLQueuedThread::completeRequest(handle_t handle)  		llassert_always(req->getStatus() != STATUS_QUEUED);  		llassert_always(req->getStatus() != STATUS_INPROGRESS);  #if _DEBUG -// 		llinfos << llformat("LLQueuedThread::Completed req [%08d]",handle) << llendl; +// 		LL_INFOS() << llformat("LLQueuedThread::Completed req [%08d]",handle) << LL_ENDL;  #endif  		mRequestHash.erase(handle);  		req->deleteRequest(); @@ -386,7 +386,7 @@ bool LLQueuedThread::check()  		{  			if (entry->getHashKey() > mNextHandle)  			{ -				llerrs << "Hash Error" << llendl; +				LL_ERRS() << "Hash Error" << LL_ENDL;  				return false;  			}  			entry = entry->getNextEntry(); @@ -520,7 +520,7 @@ void LLQueuedThread::run()  		}  		//LLThread::yield(); // thread should yield after each request		  	} -	llinfos << "LLQueuedThread " << mName << " EXITING." << llendl; +	LL_INFOS() << "LLQueuedThread " << mName << " EXITING." << LL_ENDL;  }  // virtual diff --git a/indra/llcommon/llrefcount.cpp b/indra/llcommon/llrefcount.cpp index e1876599fc..a638df2c7c 100755 --- a/indra/llcommon/llrefcount.cpp +++ b/indra/llcommon/llrefcount.cpp @@ -76,7 +76,7 @@ LLRefCount::~LLRefCount()  {   	if (mRef != 0)  	{ -		llerrs << "deleting non-zero reference" << llendl; +		LL_ERRS() << "deleting non-zero reference" << LL_ENDL;  	}  #if LL_REF_COUNT_DEBUG @@ -95,8 +95,8 @@ void LLRefCount::ref() const  		if(mMutexp->isLocked())   		{  			mCrashAtUnlock = TRUE ; -			llerrs << "the mutex is locked by the thread: " << mLockedThreadID  -				<< " Current thread: " << LLThread::currentID() << llendl ; +			LL_ERRS() << "the mutex is locked by the thread: " << mLockedThreadID  +				<< " Current thread: " << LLThread::currentID() << LL_ENDL ;  		}  		mMutexp->lock() ; @@ -123,8 +123,8 @@ S32 LLRefCount::unref() const  		if(mMutexp->isLocked())   		{  			mCrashAtUnlock = TRUE ; -			llerrs << "the mutex is locked by the thread: " << mLockedThreadID  -				<< " Current thread: " << LLThread::currentID() << llendl ; +			LL_ERRS() << "the mutex is locked by the thread: " << mLockedThreadID  +				<< " Current thread: " << LLThread::currentID() << LL_ENDL ;  		}  		mMutexp->lock() ; diff --git a/indra/llcommon/llregistry.h b/indra/llcommon/llregistry.h index c8ec0a0bc0..29950c108d 100755 --- a/indra/llcommon/llregistry.h +++ b/indra/llcommon/llregistry.h @@ -62,7 +62,7 @@ public:  		{  			if (mMap.insert(std::make_pair(key, value)).second == false)  			{ -				llwarns << "Tried to register " << key << " but it was already registered!" << llendl; +				LL_WARNS() << "Tried to register " << key << " but it was already registered!" << LL_ENDL;  				return false;  			}  			return true; @@ -307,7 +307,7 @@ public:  		{  			if (singleton_t::instance().exists(key))  			{ -				llerrs << "Duplicate registry entry under key \"" << key << "\"" << llendl; +				LL_ERRS() << "Duplicate registry entry under key \"" << key << "\"" << LL_ENDL;  			}  			singleton_t::instance().mStaticScope->add(key, value);  		} diff --git a/indra/llcommon/llsafehandle.h b/indra/llcommon/llsafehandle.h index 8d52d9bb15..4226bf04f0 100755 --- a/indra/llcommon/llsafehandle.h +++ b/indra/llcommon/llsafehandle.h @@ -134,7 +134,7 @@ protected:  			tempp->unref();  			if (mPointer != NULL)  			{ -				llwarns << "Unreference did assignment to non-NULL because of destructor" << llendl; +				LL_WARNS() << "Unreference did assignment to non-NULL because of destructor" << LL_ENDL;  				unref();  			}  		} diff --git a/indra/llcommon/llsdserialize.cpp b/indra/llcommon/llsdserialize.cpp index ad4fce6f35..04d7a6ed56 100755 --- a/indra/llcommon/llsdserialize.cpp +++ b/indra/llcommon/llsdserialize.cpp @@ -81,7 +81,7 @@ void LLSDSerialize::serialize(const LLSD& sd, std::ostream& str, ELLSD_Serialize  		break;  	default: -		llwarns << "serialize request for unknown ELLSD_Serialize" << llendl; +		LL_WARNS() << "serialize request for unknown ELLSD_Serialize" << LL_ENDL;  	}  	if (f.notNull()) @@ -169,7 +169,7 @@ bool LLSDSerialize::deserialize(LLSD& sd, std::istream& str, S32 max_bytes)  	}  	else  	{ -		llwarns << "deserialize request for unknown ELLSD_Serialize" << llendl; +		LL_WARNS() << "deserialize request for unknown ELLSD_Serialize" << LL_ENDL;  	}  	if (p.notNull()) @@ -179,7 +179,7 @@ bool LLSDSerialize::deserialize(LLSD& sd, std::istream& str, S32 max_bytes)  	}  fail: -	llwarns << "deserialize LLSD parse failure" << llendl; +	LL_WARNS() << "deserialize LLSD parse failure" << LL_ENDL;  	return false;  } @@ -445,7 +445,7 @@ S32 LLSDNotationParser::doParse(std::istream& istr, LLSD& data) const  		}  		if(istr.fail())  		{ -			llinfos << "STREAM FAILURE reading map." << llendl; +			LL_INFOS() << "STREAM FAILURE reading map." << LL_ENDL;  			parse_count = PARSE_FAILURE;  		}  		break; @@ -464,7 +464,7 @@ S32 LLSDNotationParser::doParse(std::istream& istr, LLSD& data) const  		}  		if(istr.fail())  		{ -			llinfos << "STREAM FAILURE reading array." << llendl; +			LL_INFOS() << "STREAM FAILURE reading array." << LL_ENDL;  			parse_count = PARSE_FAILURE;  		}  		break; @@ -500,7 +500,7 @@ S32 LLSDNotationParser::doParse(std::istream& istr, LLSD& data) const  		}  		if(istr.fail())  		{ -			llinfos << "STREAM FAILURE reading boolean." << llendl; +			LL_INFOS() << "STREAM FAILURE reading boolean." << LL_ENDL;  			parse_count = PARSE_FAILURE;  		}  		break; @@ -526,7 +526,7 @@ S32 LLSDNotationParser::doParse(std::istream& istr, LLSD& data) const  		}  		if(istr.fail())  		{ -			llinfos << "STREAM FAILURE reading boolean." << llendl; +			LL_INFOS() << "STREAM FAILURE reading boolean." << LL_ENDL;  			parse_count = PARSE_FAILURE;  		}  		break; @@ -539,7 +539,7 @@ S32 LLSDNotationParser::doParse(std::istream& istr, LLSD& data) const  		data = integer;  		if(istr.fail())  		{ -			llinfos << "STREAM FAILURE reading integer." << llendl; +			LL_INFOS() << "STREAM FAILURE reading integer." << LL_ENDL;  			parse_count = PARSE_FAILURE;  		}  		break; @@ -553,7 +553,7 @@ S32 LLSDNotationParser::doParse(std::istream& istr, LLSD& data) const  		data = real;  		if(istr.fail())  		{ -			llinfos << "STREAM FAILURE reading real." << llendl; +			LL_INFOS() << "STREAM FAILURE reading real." << LL_ENDL;  			parse_count = PARSE_FAILURE;  		}  		break; @@ -567,7 +567,7 @@ S32 LLSDNotationParser::doParse(std::istream& istr, LLSD& data) const  		data = id;  		if(istr.fail())  		{ -			llinfos << "STREAM FAILURE reading uuid." << llendl; +			LL_INFOS() << "STREAM FAILURE reading uuid." << LL_ENDL;  			parse_count = PARSE_FAILURE;  		}  		break; @@ -582,7 +582,7 @@ S32 LLSDNotationParser::doParse(std::istream& istr, LLSD& data) const  		}  		if(istr.fail())  		{ -			llinfos << "STREAM FAILURE reading string." << llendl; +			LL_INFOS() << "STREAM FAILURE reading string." << LL_ENDL;  			parse_count = PARSE_FAILURE;  		}  		break; @@ -604,7 +604,7 @@ S32 LLSDNotationParser::doParse(std::istream& istr, LLSD& data) const  		}  		if(istr.fail())  		{ -			llinfos << "STREAM FAILURE reading link." << llendl; +			LL_INFOS() << "STREAM FAILURE reading link." << LL_ENDL;  			parse_count = PARSE_FAILURE;  		}  		break; @@ -627,7 +627,7 @@ S32 LLSDNotationParser::doParse(std::istream& istr, LLSD& data) const  		}  		if(istr.fail())  		{ -			llinfos << "STREAM FAILURE reading date." << llendl; +			LL_INFOS() << "STREAM FAILURE reading date." << LL_ENDL;  			parse_count = PARSE_FAILURE;  		}  		break; @@ -640,15 +640,15 @@ S32 LLSDNotationParser::doParse(std::istream& istr, LLSD& data) const  		}  		if(istr.fail())  		{ -			llinfos << "STREAM FAILURE reading data." << llendl; +			LL_INFOS() << "STREAM FAILURE reading data." << LL_ENDL;  			parse_count = PARSE_FAILURE;  		}  		break;  	default:  		parse_count = PARSE_FAILURE; -		llinfos << "Unrecognized character while parsing: int(" << (int)c -			<< ")" << llendl; +		LL_INFOS() << "Unrecognized character while parsing: int(" << (int)c +			<< ")" << LL_ENDL;  		break;  	}  	if(PARSE_FAILURE == parse_count) @@ -909,7 +909,7 @@ S32 LLSDBinaryParser::doParse(std::istream& istr, LLSD& data) const  		}  		if(istr.fail())  		{ -			llinfos << "STREAM FAILURE reading binary map." << llendl; +			LL_INFOS() << "STREAM FAILURE reading binary map." << LL_ENDL;  			parse_count = PARSE_FAILURE;  		}  		break; @@ -928,7 +928,7 @@ S32 LLSDBinaryParser::doParse(std::istream& istr, LLSD& data) const  		}  		if(istr.fail())  		{ -			llinfos << "STREAM FAILURE reading binary array." << llendl; +			LL_INFOS() << "STREAM FAILURE reading binary array." << LL_ENDL;  			parse_count = PARSE_FAILURE;  		}  		break; @@ -953,7 +953,7 @@ S32 LLSDBinaryParser::doParse(std::istream& istr, LLSD& data) const  		data = (S32)ntohl(value_nbo);  		if(istr.fail())  		{ -			llinfos << "STREAM FAILURE reading binary integer." << llendl; +			LL_INFOS() << "STREAM FAILURE reading binary integer." << LL_ENDL;  		}  		break;  	} @@ -965,7 +965,7 @@ S32 LLSDBinaryParser::doParse(std::istream& istr, LLSD& data) const  		data = ll_ntohd(real_nbo);  		if(istr.fail())  		{ -			llinfos << "STREAM FAILURE reading binary real." << llendl; +			LL_INFOS() << "STREAM FAILURE reading binary real." << LL_ENDL;  		}  		break;  	} @@ -977,7 +977,7 @@ S32 LLSDBinaryParser::doParse(std::istream& istr, LLSD& data) const  		data = id;  		if(istr.fail())  		{ -			llinfos << "STREAM FAILURE reading binary uuid." << llendl; +			LL_INFOS() << "STREAM FAILURE reading binary uuid." << LL_ENDL;  		}  		break;  	} @@ -998,8 +998,8 @@ S32 LLSDBinaryParser::doParse(std::istream& istr, LLSD& data) const  		}  		if(istr.fail())  		{ -			llinfos << "STREAM FAILURE reading binary (notation-style) string." -				<< llendl; +			LL_INFOS() << "STREAM FAILURE reading binary (notation-style) string." +				<< LL_ENDL;  			parse_count = PARSE_FAILURE;  		}  		break; @@ -1018,7 +1018,7 @@ S32 LLSDBinaryParser::doParse(std::istream& istr, LLSD& data) const  		}  		if(istr.fail())  		{ -			llinfos << "STREAM FAILURE reading binary string." << llendl; +			LL_INFOS() << "STREAM FAILURE reading binary string." << LL_ENDL;  			parse_count = PARSE_FAILURE;  		}  		break; @@ -1037,7 +1037,7 @@ S32 LLSDBinaryParser::doParse(std::istream& istr, LLSD& data) const  		}  		if(istr.fail())  		{ -			llinfos << "STREAM FAILURE reading binary link." << llendl; +			LL_INFOS() << "STREAM FAILURE reading binary link." << LL_ENDL;  			parse_count = PARSE_FAILURE;  		}  		break; @@ -1050,7 +1050,7 @@ S32 LLSDBinaryParser::doParse(std::istream& istr, LLSD& data) const  		data = LLDate(real);  		if(istr.fail())  		{ -			llinfos << "STREAM FAILURE reading binary date." << llendl; +			LL_INFOS() << "STREAM FAILURE reading binary date." << LL_ENDL;  			parse_count = PARSE_FAILURE;  		}  		break; @@ -1079,7 +1079,7 @@ S32 LLSDBinaryParser::doParse(std::istream& istr, LLSD& data) const  		}  		if(istr.fail())  		{ -			llinfos << "STREAM FAILURE reading binary." << llendl; +			LL_INFOS() << "STREAM FAILURE reading binary." << LL_ENDL;  			parse_count = PARSE_FAILURE;  		}  		break; @@ -1087,8 +1087,8 @@ S32 LLSDBinaryParser::doParse(std::istream& istr, LLSD& data) const  	default:  		parse_count = PARSE_FAILURE; -		llinfos << "Unrecognized character while parsing: int(" << (int)c -			<< ")" << llendl; +		LL_INFOS() << "Unrecognized character while parsing: int(" << (int)c +			<< ")" << LL_ENDL;  		break;  	}  	if(PARSE_FAILURE == parse_count) @@ -2017,7 +2017,7 @@ std::string zip_llsd(LLSD& data)  	S32 ret = deflateInit(&strm, Z_BEST_COMPRESSION);  	if (ret != Z_OK)  	{ -		llwarns << "Failed to compress LLSD block." << llendl; +		LL_WARNS() << "Failed to compress LLSD block." << LL_ENDL;  		return std::string();  	} @@ -2044,7 +2044,7 @@ std::string zip_llsd(LLSD& data)  			if (strm.avail_out >= CHUNK)  			{  				free(output); -				llwarns << "Failed to compress LLSD block." << llendl; +				LL_WARNS() << "Failed to compress LLSD block." << LL_ENDL;  				return std::string();  			} @@ -2056,7 +2056,7 @@ std::string zip_llsd(LLSD& data)  		else   		{  			free(output); -			llwarns << "Failed to compress LLSD block." << llendl; +			LL_WARNS() << "Failed to compress LLSD block." << LL_ENDL;  			return std::string();  		}  	} @@ -2073,7 +2073,7 @@ std::string zip_llsd(LLSD& data)  	LLSD test_sd;  	if (!unzip_llsd(test_sd, test, result.size()))  	{ -		llerrs << "Invalid compression result!" << llendl; +		LL_ERRS() << "Invalid compression result!" << LL_ENDL;  	}  #endif @@ -2163,7 +2163,7 @@ bool unzip_llsd(LLSD& data, std::istream& is, S32 size)  		if (!LLSDSerialize::fromBinary(data, istr, cur_size))  		{ -			llwarns << "Failed to unzip LLSD block" << llendl; +			LL_WARNS() << "Failed to unzip LLSD block" << LL_ENDL;  			free(result);  			return false;  		}		 diff --git a/indra/llcommon/llsdserialize_xml.cpp b/indra/llcommon/llsdserialize_xml.cpp index 614a2d5636..4e2af0e589 100755 --- a/indra/llcommon/llsdserialize_xml.cpp +++ b/indra/llcommon/llsdserialize_xml.cpp @@ -406,7 +406,7 @@ S32 LLSDXMLParser::Impl::parse(std::istream& input, LLSD& data)  		}  		if (mEmitErrors)  		{ -		llinfos << "LLSDXMLParser::Impl::parse: XML_STATUS_ERROR parsing:" << (char*) buffer << llendl; +		LL_INFOS() << "LLSDXMLParser::Impl::parse: XML_STATUS_ERROR parsing:" << (char*) buffer << LL_ENDL;  		}  		data = LLSD();  		return LLSDParser::PARSE_FAILURE; @@ -487,7 +487,7 @@ S32 LLSDXMLParser::Impl::parseLines(std::istream& input, LLSD& data)  	{  		if (mEmitErrors)  		{ -		llinfos << "LLSDXMLParser::Impl::parseLines: XML_STATUS_ERROR" << llendl; +		LL_INFOS() << "LLSDXMLParser::Impl::parseLines: XML_STATUS_ERROR" << LL_ENDL;  		}  		return LLSDParser::PARSE_FAILURE;  	} @@ -549,7 +549,7 @@ void LLSDXMLParser::Impl::parsePart(const char* buf, int len)  		XML_Status status = XML_Parse(mParser, buf, len, false);  		if (status == XML_STATUS_ERROR)  		{ -			llinfos << "Unexpected XML parsing error at start" << llendl; +			LL_INFOS() << "Unexpected XML parsing error at start" << LL_ENDL;  		}  	}  } diff --git a/indra/llcommon/llsingleton.h b/indra/llcommon/llsingleton.h index b9cb8e3d41..6e6291a165 100755 --- a/indra/llcommon/llsingleton.h +++ b/indra/llcommon/llsingleton.h @@ -143,7 +143,7 @@ public:  			llassert(false);  			return NULL;  		case CONSTRUCTING: -			llerrs << "Tried to access singleton " << typeid(DERIVED_TYPE).name() << " from singleton constructor!" << llendl; +			LL_ERRS() << "Tried to access singleton " << typeid(DERIVED_TYPE).name() << " from singleton constructor!" << LL_ENDL;  			return NULL;  		case INITIALIZING:  			// go ahead and flag ourselves as initialized so we can be reentrant during initialization @@ -155,7 +155,7 @@ public:  		case INITIALIZED:  			return sData.mInstance;  		case DELETED: -			llwarns << "Trying to access deleted singleton " << typeid(DERIVED_TYPE).name() << " creating new instance" << llendl; +			LL_WARNS() << "Trying to access deleted singleton " << typeid(DERIVED_TYPE).name() << " creating new instance" << LL_ENDL;  			SingletonLifetimeManager::construct();  			// same as first time construction  			sData.mInitState = INITIALIZED;	 diff --git a/indra/llcommon/llstring.cpp b/indra/llcommon/llstring.cpp index 6f92c7d5d4..e6e80fa279 100755 --- a/indra/llcommon/llstring.cpp +++ b/indra/llcommon/llstring.cpp @@ -110,7 +110,7 @@ bool _read_file_into_string(std::string& str, const std::string& filename)  	llifstream ifs(filename, llifstream::binary);  	if (!ifs.is_open())  	{ -		llinfos << "Unable to open file " << filename << llendl; +		LL_INFOS() << "Unable to open file " << filename << LL_ENDL;  		return false;  	} @@ -188,7 +188,7 @@ S32 wchar_to_utf8chars(llwchar in_char, char* outchars)  	}  	else  	{ -		llwarns << "Invalid Unicode character " << cur_char << "!" << llendl; +		LL_WARNS() << "Invalid Unicode character " << cur_char << "!" << LL_ENDL;  		*outchars++ = LL_UNKNOWN_CHAR;  	}  	return outchars - base; diff --git a/indra/llcommon/llsys.cpp b/indra/llcommon/llsys.cpp index 8d2045dfa0..cad02f491a 100755 --- a/indra/llcommon/llsys.cpp +++ b/indra/llcommon/llsys.cpp @@ -607,7 +607,7 @@ S32 LLOSInfo::getMaxOpenFiles()  			}  			else  			{ -				llerrs << "LLOSInfo::getMaxOpenFiles: sysconf error for _SC_OPEN_MAX" << llendl; +				LL_ERRS() << "LLOSInfo::getMaxOpenFiles: sysconf error for _SC_OPEN_MAX" << LL_ENDL;  			}  		}  	} @@ -666,12 +666,12 @@ U32 LLOSInfo::getProcessVirtualSizeKB()  	sprintf(proc_ps, "/proc/%d/psinfo", (int)getpid());  	int proc_fd = -1;  	if((proc_fd = open(proc_ps, O_RDONLY)) == -1){ -		llwarns << "unable to open " << proc_ps << llendl; +		LL_WARNS() << "unable to open " << proc_ps << LL_ENDL;  		return 0;  	}  	psinfo_t proc_psinfo;  	if(read(proc_fd, &proc_psinfo, sizeof(psinfo_t)) != sizeof(psinfo_t)){ -		llwarns << "Unable to read " << proc_ps << llendl; +		LL_WARNS() << "Unable to read " << proc_ps << LL_ENDL;  		close(proc_fd);  		return 0;  	} @@ -712,12 +712,12 @@ U32 LLOSInfo::getProcessResidentSizeKB()  	sprintf(proc_ps, "/proc/%d/psinfo", (int)getpid());  	int proc_fd = -1;  	if((proc_fd = open(proc_ps, O_RDONLY)) == -1){ -		llwarns << "unable to open " << proc_ps << llendl; +		LL_WARNS() << "unable to open " << proc_ps << LL_ENDL;  		return 0;  	}  	psinfo_t proc_psinfo;  	if(read(proc_fd, &proc_psinfo, sizeof(psinfo_t)) != sizeof(psinfo_t)){ -		llwarns << "Unable to read " << proc_ps << llendl; +		LL_WARNS() << "Unable to read " << proc_ps << LL_ENDL;  		close(proc_fd);  		return 0;  	} @@ -1449,7 +1449,7 @@ BOOL gunzip_file(const std::string& srcfile, const std::string& dstfile)  		size_t nwrit = fwrite(buffer, sizeof(U8), bytes, dst);  		if (nwrit < (size_t) bytes)  		{ -			llwarns << "Short write on " << tmpfile << ": Wrote " << nwrit << " of " << bytes << " bytes." << llendl; +			LL_WARNS() << "Short write on " << tmpfile << ": Wrote " << nwrit << " of " << bytes << " bytes." << LL_ENDL;  			goto err;  		}  	} while(gzeof(src) == 0); @@ -1482,14 +1482,14 @@ BOOL gzip_file(const std::string& srcfile, const std::string& dstfile)  	{  		if (gzwrite(dst, buffer, bytes) <= 0)  		{ -			llwarns << "gzwrite failed: " << gzerror(dst, NULL) << llendl; +			LL_WARNS() << "gzwrite failed: " << gzerror(dst, NULL) << LL_ENDL;  			goto err;  		}  	}  	if (ferror(src))  	{ -		llwarns << "Error reading " << srcfile << llendl; +		LL_WARNS() << "Error reading " << srcfile << LL_ENDL;  		goto err;  	} diff --git a/indra/llcommon/llsys.h b/indra/llcommon/llsys.h index cfed0fff17..aa60fc9b2e 100755 --- a/indra/llcommon/llsys.h +++ b/indra/llcommon/llsys.h @@ -33,7 +33,7 @@  // use an LLCPUInfo object:  //  //  LLCPUInfo info; -//  llinfos << info << llendl; +//  LL_INFOS() << info << LL_ENDL;  //  #include "llsd.h" @@ -105,7 +105,7 @@ class LL_COMMON_API LLMemoryInfo  		Here's how you use an LLMemoryInfo:  		LLMemoryInfo info; -<br>	llinfos << info << llendl; +<br>	LL_INFOS() << info << LL_ENDL;  */  {  public: diff --git a/indra/llcommon/llthread.cpp b/indra/llcommon/llthread.cpp index db7ddbbfd3..bcae57fe22 100755 --- a/indra/llcommon/llthread.cpp +++ b/indra/llcommon/llthread.cpp @@ -108,7 +108,7 @@ LL_COMMON_API void assert_main_thread()  	static U32 s_thread_id = LLThread::currentID();  	if (LLThread::currentID() != s_thread_id)  	{ -		llerrs << "Illegal execution outside main thread." << llendl; +		LL_ERRS() << "Illegal execution outside main thread." << LL_ENDL;  	}  } @@ -140,7 +140,7 @@ void *APR_THREAD_FUNC LLThread::staticRun(apr_thread_t *apr_threadp, void *datap  	// Run the user supplied function  	threadp->run(); -	//llinfos << "LLThread::staticRun() Exiting: " << threadp->mName << llendl; +	//LL_INFOS() << "LLThread::staticRun() Exiting: " << threadp->mName << LL_ENDL;  	// We're done with the run function, this thread is done executing now.  	threadp->mStatus = STOPPED; @@ -197,7 +197,7 @@ void LLThread::shutdown()  			// First, set the flag that indicates that we're ready to die  			setQuitting(); -			//llinfos << "LLThread::~LLThread() Killing thread " << mName << " Status: " << mStatus << llendl; +			//LL_INFOS() << "LLThread::~LLThread() Killing thread " << mName << " Status: " << mStatus << LL_ENDL;  			// Now wait a bit for the thread to exit  			// It's unclear whether I should even bother doing this - this destructor  			// should never get called unless we're already stopped, really... @@ -219,7 +219,7 @@ void LLThread::shutdown()  		if (!isStopped())  		{  			// This thread just wouldn't stop, even though we gave it time -			//llwarns << "LLThread::~LLThread() exiting thread before clean exit!" << llendl; +			//LL_WARNS() << "LLThread::~LLThread() exiting thread before clean exit!" << LL_ENDL;  			// Put a stake in its heart.  			apr_thread_exit(mAPRThreadp, -1);  			return; @@ -259,7 +259,7 @@ void LLThread::start()  	else  	{  		mStatus = STOPPED; -		llwarns << "failed to start thread " << mName << llendl; +		LL_WARNS() << "failed to start thread " << mName << LL_ENDL;  		ll_apr_warn_status(status);  	} @@ -416,7 +416,7 @@ LLThreadSafeRefCount::~LLThreadSafeRefCount()  {   	if (mRef != 0)  	{ -		llerrs << "deleting non-zero reference" << llendl; +		LL_ERRS() << "deleting non-zero reference" << LL_ENDL;  	}  } diff --git a/indra/llcommon/llthreadlocalstorage.cpp b/indra/llcommon/llthreadlocalstorage.cpp index 03c306cc7f..8cef05caac 100644 --- a/indra/llcommon/llthreadlocalstorage.cpp +++ b/indra/llcommon/llthreadlocalstorage.cpp @@ -43,7 +43,7 @@ void LLThreadLocalPointerBase::set( void* value )  	if (result != APR_SUCCESS)  	{  		ll_apr_warn_status(result); -		llerrs << "Failed to set thread local data" << llendl; +		LL_ERRS() << "Failed to set thread local data" << LL_ENDL;  	}  } @@ -56,7 +56,7 @@ void* LLThreadLocalPointerBase::get() const  	if (result != APR_SUCCESS)  	{  		ll_apr_warn_status(result); -		llerrs << "Failed to get thread local data" << llendl; +		LL_ERRS() << "Failed to get thread local data" << LL_ENDL;  	}  	return ptr;  } @@ -68,7 +68,7 @@ void LLThreadLocalPointerBase::initStorage( )  	if (result != APR_SUCCESS)  	{  		ll_apr_warn_status(result); -		llerrs << "Failed to allocate thread local data" << llendl; +		LL_ERRS() << "Failed to allocate thread local data" << LL_ENDL;  	}  } @@ -82,7 +82,7 @@ void LLThreadLocalPointerBase::destroyStorage()  			if (result != APR_SUCCESS)  			{  				ll_apr_warn_status(result); -				llerrs << "Failed to delete thread local data" << llendl; +				LL_ERRS() << "Failed to delete thread local data" << LL_ENDL;  			}  		}  	} diff --git a/indra/llcommon/llthreadlocalstorage.h b/indra/llcommon/llthreadlocalstorage.h index 3b2f5f4193..177e822227 100644 --- a/indra/llcommon/llthreadlocalstorage.h +++ b/indra/llcommon/llthreadlocalstorage.h @@ -157,14 +157,14 @@ private:  #elif LL_DARWIN      static void TLSError()      { -        llerrs << "Could not create thread local storage" << llendl; +        LL_ERRS() << "Could not create thread local storage" << LL_ENDL;      }      static void createTLSKey()      {          static S32 key_created = pthread_key_create(&sInstanceKey, NULL);          if (key_created != 0)          { -            llerrs << "Could not create thread local storage" << llendl; +            LL_ERRS() << "Could not create thread local storage" << LL_ENDL;          }      }      static pthread_key_t sInstanceKey; diff --git a/indra/llcommon/llthreadsafequeue.cpp b/indra/llcommon/llthreadsafequeue.cpp index 8a73e632a9..185f0d63fb 100755 --- a/indra/llcommon/llthreadsafequeue.cpp +++ b/indra/llcommon/llthreadsafequeue.cpp @@ -54,7 +54,7 @@ LLThreadSafeQueueImplementation::LLThreadSafeQueueImplementation(apr_pool_t * po  LLThreadSafeQueueImplementation::~LLThreadSafeQueueImplementation()  {  	if(mQueue != 0) { -		if(apr_queue_size(mQueue) != 0) llwarns <<  +		if(apr_queue_size(mQueue) != 0) LL_WARNS() <<   			"terminating queue which still contains " << apr_queue_size(mQueue) <<  			" elements;" << "memory will be leaked" << LL_ENDL;  		apr_queue_term(mQueue); diff --git a/indra/llcommon/lltimer.cpp b/indra/llcommon/lltimer.cpp index f27c433ee1..a2c5f3d699 100755 --- a/indra/llcommon/lltimer.cpp +++ b/indra/llcommon/lltimer.cpp @@ -456,7 +456,7 @@ BOOL LLTimer::knownBadTimer()  			{  				if (!wcscmp(pci_id, bad_pci_list[check]))  				{ -//					llwarns << "unreliable PCI chipset found!! " << pci_id << endl; +//					LL_WARNS() << "unreliable PCI chipset found!! " << pci_id << endl;  					failed = TRUE;  					break;  				} diff --git a/indra/llcommon/lltrace.cpp b/indra/llcommon/lltrace.cpp index 3dffbe6d4a..eedf1b06f1 100644 --- a/indra/llcommon/lltrace.cpp +++ b/indra/llcommon/lltrace.cpp @@ -40,7 +40,7 @@ TraceBase::TraceBase( const char* name, const char* description )  #ifndef LL_RELEASE_FOR_DOWNLOAD  	if (LLTrace::get_master_thread_recorder() != NULL)  	{ -		llerrs << "Attempting to declare trace object after program initialization.  Trace objects should be statically initialized." << llendl; +		LL_ERRS() << "Attempting to declare trace object after program initialization.  Trace objects should be statically initialized." << LL_ENDL;  	}  #endif  } diff --git a/indra/llcommon/lltracethreadrecorder.cpp b/indra/llcommon/lltracethreadrecorder.cpp index e20d8b63de..8c32e1568b 100644 --- a/indra/llcommon/lltracethreadrecorder.cpp +++ b/indra/llcommon/lltracethreadrecorder.cpp @@ -174,7 +174,7 @@ ThreadRecorder::active_recording_list_t::reverse_iterator ThreadRecorder::bringU  	if (it == end_it)  	{ -		llwarns << "Recording not active on this thread" << llendl; +		LL_WARNS() << "Recording not active on this thread" << LL_ENDL;  	}  	return it; diff --git a/indra/llcommon/lluri.cpp b/indra/llcommon/lluri.cpp index 37f5b3d6a3..9f12d49244 100755 --- a/indra/llcommon/lluri.cpp +++ b/indra/llcommon/lluri.cpp @@ -359,7 +359,7 @@ LLURI LLURI::buildHTTP(const std::string& prefix,  			 it != path.endArray();  			 ++it)  		{ -			lldebugs << "PATH: inserting " << it->asString() << llendl; +			LL_DEBUGS() << "PATH: inserting " << it->asString() << LL_ENDL;  			result.mEscapedPath += "/" + escapePathComponent(it->asString());  		}  	} @@ -399,8 +399,8 @@ LLURI LLURI::buildHTTP(const std::string& prefix,  	}  	else  	{ -	  llwarns << "Valid path arguments to buildHTTP are array, string, or undef, you passed type"  -			  << path.type() << llendl; +	  LL_WARNS() << "Valid path arguments to buildHTTP are array, string, or undef, you passed type"  +			  << path.type() << LL_ENDL;  	}  	result.mEscapedOpaque = "//" + result.mEscapedAuthority +  		result.mEscapedPath; @@ -584,7 +584,7 @@ LLSD LLURI::queryMap() const  // static  LLSD LLURI::queryMap(std::string escaped_query_string)  { -	lldebugs << "LLURI::queryMap query params: " << escaped_query_string << llendl; +	LL_DEBUGS() << "LLURI::queryMap query params: " << escaped_query_string << LL_ENDL;  	LLSD result = LLSD::emptyArray();  	while(!escaped_query_string.empty()) @@ -610,12 +610,12 @@ LLSD LLURI::queryMap(std::string escaped_query_string)  		{  			std::string key = unescape(tuple.substr(0,key_end));  			std::string value = unescape(tuple.substr(key_end+1)); -			lldebugs << "inserting key " << key << " value " << value << llendl; +			LL_DEBUGS() << "inserting key " << key << " value " << value << LL_ENDL;  			result[key] = value;  		}  		else  		{ -			lldebugs << "inserting key " << unescape(tuple) << " value true" << llendl; +			LL_DEBUGS() << "inserting key " << unescape(tuple) << " value true" << LL_ENDL;  		    result[unescape(tuple)] = true;  		}  	} diff --git a/indra/llcommon/lluuid.cpp b/indra/llcommon/lluuid.cpp index ba4b670b9a..e3671047b4 100755 --- a/indra/llcommon/lluuid.cpp +++ b/indra/llcommon/lluuid.cpp @@ -232,7 +232,7 @@ BOOL LLUUID::set(const std::string& in_string, BOOL emit)  		{  			if(emit)  			{ -				llwarns << "Warning! Using broken UUID string format" << llendl; +				LL_WARNS() << "Warning! Using broken UUID string format" << LL_ENDL;  			}  			broken_format = TRUE;  		} @@ -242,7 +242,7 @@ BOOL LLUUID::set(const std::string& in_string, BOOL emit)  			if(emit)  			{  				//don't spam the logs because a resident can't spell. -				llwarns << "Bad UUID string: " << in_string << llendl; +				LL_WARNS() << "Bad UUID string: " << in_string << LL_ENDL;  			}  			setNull();  			return FALSE; @@ -281,7 +281,7 @@ BOOL LLUUID::set(const std::string& in_string, BOOL emit)  		{  			if(emit)  			{							 -				llwarns << "Invalid UUID string character" << llendl; +				LL_WARNS() << "Invalid UUID string character" << LL_ENDL;  			}  			setNull();  			return FALSE; @@ -306,7 +306,7 @@ BOOL LLUUID::set(const std::string& in_string, BOOL emit)  		{  			if(emit)  			{ -				llwarns << "Invalid UUID string character" << llendl; +				LL_WARNS() << "Invalid UUID string character" << LL_ENDL;  			}  			setNull();  			return FALSE; diff --git a/indra/llcommon/llworkerthread.cpp b/indra/llcommon/llworkerthread.cpp index 3d05a30ac2..4c197dc1d6 100755 --- a/indra/llcommon/llworkerthread.cpp +++ b/indra/llcommon/llworkerthread.cpp @@ -50,8 +50,8 @@ LLWorkerThread::~LLWorkerThread()  	// Delete any workers in the delete queue (should be safe - had better be!)  	if (!mDeleteList.empty())  	{ -		llwarns << "Worker Thread: " << mName << " destroyed with " << mDeleteList.size() -				<< " entries in delete list." << llendl; +		LL_WARNS() << "Worker Thread: " << mName << " destroyed with " << mDeleteList.size() +				<< " entries in delete list." << LL_ENDL;  	}  	delete mDeleteMutex; @@ -65,8 +65,8 @@ void LLWorkerThread::clearDeleteList()  	// Delete any workers in the delete queue (should be safe - had better be!)  	if (!mDeleteList.empty())  	{ -		llwarns << "Worker Thread: " << mName << " destroyed with " << mDeleteList.size() -				<< " entries in delete list." << llendl; +		LL_WARNS() << "Worker Thread: " << mName << " destroyed with " << mDeleteList.size() +				<< " entries in delete list." << LL_ENDL;  		mDeleteMutex->lock();  		for (delete_list_t::iterator iter = mDeleteList.begin(); iter != mDeleteList.end(); ++iter) @@ -142,7 +142,7 @@ LLWorkerThread::handle_t LLWorkerThread::addWorkRequest(LLWorkerClass* workercla  	bool res = addRequest(req);  	if (!res)  	{ -		llerrs << "add called after LLWorkerThread::cleanupClass()" << llendl; +		LL_ERRS() << "add called after LLWorkerThread::cleanupClass()" << LL_ENDL;  		req->deleteRequest();  		handle = nullHandle();  	} @@ -209,7 +209,7 @@ LLWorkerClass::LLWorkerClass(LLWorkerThread* workerthread, const std::string& na  {  	if (!mWorkerThread)  	{ -		llerrs << "LLWorkerClass() called with NULL workerthread: " << name << llendl; +		LL_ERRS() << "LLWorkerClass() called with NULL workerthread: " << name << LL_ENDL;  	}  } @@ -223,12 +223,12 @@ LLWorkerClass::~LLWorkerClass()  		LLWorkerThread::WorkRequest* workreq = (LLWorkerThread::WorkRequest*)mWorkerThread->getRequest(mRequestHandle);  		if (!workreq)  		{ -			llerrs << "LLWorkerClass destroyed with stale work handle" << llendl; +			LL_ERRS() << "LLWorkerClass destroyed with stale work handle" << LL_ENDL;  		}  		if (workreq->getStatus() != LLWorkerThread::STATUS_ABORTED &&  			workreq->getStatus() != LLWorkerThread::STATUS_COMPLETE)  		{ -			llerrs << "LLWorkerClass destroyed with active worker! Worker Status: " << workreq->getStatus() << llendl; +			LL_ERRS() << "LLWorkerClass destroyed with active worker! Worker Status: " << workreq->getStatus() << LL_ENDL;  		}  	}  } @@ -238,7 +238,7 @@ void LLWorkerClass::setWorkerThread(LLWorkerThread* workerthread)  	mMutex.lock();  	if (mRequestHandle != LLWorkerThread::nullHandle())  	{ -		llerrs << "LLWorkerClass attempt to change WorkerThread with active worker!" << llendl; +		LL_ERRS() << "LLWorkerClass attempt to change WorkerThread with active worker!" << LL_ENDL;  	}  	mWorkerThread = workerthread;  	mMutex.unlock(); @@ -298,10 +298,10 @@ void LLWorkerClass::addWork(S32 param, U32 priority)  	llassert_always(!(mWorkFlags & (WCF_WORKING|WCF_HAVE_WORK)));  	if (mRequestHandle != LLWorkerThread::nullHandle())  	{ -		llerrs << "LLWorkerClass attempt to add work with active worker!" << llendl; +		LL_ERRS() << "LLWorkerClass attempt to add work with active worker!" << LL_ENDL;  	}  #if _DEBUG -// 	llinfos << "addWork: " << mWorkerClassName << " Param: " << param << llendl; +// 	LL_INFOS() << "addWork: " << mWorkerClassName << " Param: " << param << LL_ENDL;  #endif  	startWork(param);  	clearFlags(WCF_WORK_FINISHED|WCF_WORK_ABORTED); @@ -316,7 +316,7 @@ void LLWorkerClass::abortWork(bool autocomplete)  #if _DEBUG  // 	LLWorkerThread::WorkRequest* workreq = mWorkerThread->getRequest(mRequestHandle);  // 	if (workreq) -// 		llinfos << "abortWork: " << mWorkerClassName << " Param: " << workreq->getParam() << llendl; +// 		LL_INFOS() << "abortWork: " << mWorkerClassName << " Param: " << workreq->getParam() << LL_ENDL;  #endif  	if (mRequestHandle != LLWorkerThread::nullHandle())  	{ diff --git a/indra/llcommon/u64.cpp b/indra/llcommon/u64.cpp index eea16c5036..02c2c15d26 100755 --- a/indra/llcommon/u64.cpp +++ b/indra/llcommon/u64.cpp @@ -36,7 +36,7 @@ U64 str_to_U64(const std::string& str)  	if (!aptr)  	{ -		llwarns << "str_to_U64: Bad string to U64 conversion attempt: format\n" << llendl; +		LL_WARNS() << "str_to_U64: Bad string to U64 conversion attempt: format\n" << LL_ENDL;  	}  	else  	{ | 
