STORM-2086 Convert old style llinfos and llwarns to new format
parent
28a2d9667d
commit
44f5d73209
|
|
@ -717,6 +717,7 @@ Jonathan Yap
|
|||
STORM-2030
|
||||
STORM-2034
|
||||
STORM-2018
|
||||
STORM-2086
|
||||
Kadah Coba
|
||||
STORM-1060
|
||||
STORM-1843
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ int main(int argc, char **argv)
|
|||
|
||||
if (!(options.has("pid") && options.has("dumpdir")))
|
||||
{
|
||||
llwarns << "Insufficient parameters to crash report." << llendl;
|
||||
LL_WARNS() << "Insufficient parameters to crash report." << LL_ENDL;
|
||||
}
|
||||
|
||||
if (! app.init())
|
||||
|
|
|
|||
|
|
@ -362,13 +362,4 @@ typedef LLError::NoClassInfo _LL_CLASS_TO_LOG;
|
|||
#define LL_INFOS_ONCE(...) lllog(LLError::LEVEL_INFO, true, ##__VA_ARGS__)
|
||||
#define LL_WARNS_ONCE(...) lllog(LLError::LEVEL_WARN, true, ##__VA_ARGS__)
|
||||
|
||||
// DEPRECATED: Use the new macros that allow tags and *look* like macros.
|
||||
#define lldebugs LL_COMPILE_TIME_MESSAGE("Warning: lldebugs deprecated, use LL_DEBUGS() instead") LL_DEBUGS()
|
||||
#define llinfos LL_COMPILE_TIME_MESSAGE("Warning: llinfos deprecated, use LL_INFOS() instead") LL_INFOS()
|
||||
#define llwarns LL_COMPILE_TIME_MESSAGE("Warning: llwarns deprecated, use LL_WARNS() instead") LL_WARNS()
|
||||
#define llerrs LL_COMPILE_TIME_MESSAGE("Warning: llerrs deprecated, use LL_ERRS() instead") LL_ERRS()
|
||||
#define llcont LL_COMPILE_TIME_MESSAGE("Warning: llcont deprecated, use LL_CONT instead") LL_CONT
|
||||
#define llendl LL_COMPILE_TIME_MESSAGE("Warning: llendl deprecated, use LL_ENDL instead") LL_ENDL
|
||||
|
||||
|
||||
#endif // LL_LLERROR_H
|
||||
|
|
|
|||
|
|
@ -266,7 +266,7 @@ void LLImageFilter::executeFilter(LLPointer<LLImageRaw> raw_image)
|
|||
}
|
||||
else
|
||||
{
|
||||
llwarns << "Filter unknown, cannot execute filter command : " << filter_name << llendl;
|
||||
LL_WARNS() << "Filter unknown, cannot execute filter command : " << filter_name << LL_ENDL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -172,7 +172,7 @@ LLModel::EModelStatus load_face_from_dom_triangles(std::vector<LLVolumeFace>& fa
|
|||
|
||||
if (!pos_source)
|
||||
{
|
||||
llwarns << "Unable to process mesh without position data; invalid model; invalid model." << llendl;
|
||||
LL_WARNS() << "Unable to process mesh without position data; invalid model; invalid model." << LL_ENDL;
|
||||
return LLModel::BAD_ELEMENT;
|
||||
}
|
||||
|
||||
|
|
@ -193,7 +193,7 @@ LLModel::EModelStatus load_face_from_dom_triangles(std::vector<LLVolumeFace>& fa
|
|||
|
||||
if ((vertex_count == 0) || (tc_count == 0))
|
||||
{
|
||||
llwarns << "Unable to process mesh with empty position array; invalid model." << llendl;
|
||||
LL_WARNS() << "Unable to process mesh with empty position array; invalid model." << LL_ENDL;
|
||||
return LLModel::BAD_ELEMENT;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -673,7 +673,7 @@ void LLKeywords::findSegments(std::vector<LLTextSegmentPtr>* seg_list, const LLW
|
|||
S32 seg_start = cur - base;
|
||||
S32 seg_end = seg_start + seg_len;
|
||||
|
||||
// llinfos << "Seg: [" << word.c_str() << "]" << llendl;
|
||||
// LL_INFOS("SyntaxLSL") << "Seg: [" << word.c_str() << "]" << LL_ENDL;
|
||||
|
||||
insertSegments(wtext, *seg_list,cur_token, text_len, seg_start, seg_end, defaultColor, editor);
|
||||
}
|
||||
|
|
@ -740,10 +740,10 @@ void LLKeywords::insertSegment(std::vector<LLTextSegmentPtr>& seg_list, LLTextSe
|
|||
#ifdef _DEBUG
|
||||
void LLKeywords::dump()
|
||||
{
|
||||
llinfos << "LLKeywords" << llendl;
|
||||
LL_INFOS() << "LLKeywords" << LL_ENDL;
|
||||
|
||||
|
||||
llinfos << "LLKeywords::sWordTokenMap" << llendl;
|
||||
LL_INFOS() << "LLKeywords::sWordTokenMap" << LL_ENDL;
|
||||
word_token_map_t::iterator word_token_iter = mWordTokenMap.begin();
|
||||
while( word_token_iter != mWordTokenMap.end() )
|
||||
{
|
||||
|
|
@ -752,7 +752,7 @@ void LLKeywords::dump()
|
|||
++word_token_iter;
|
||||
}
|
||||
|
||||
llinfos << "LLKeywords::sLineTokenList" << llendl;
|
||||
LL_INFOS() << "LLKeywords::sLineTokenList" << LL_ENDL;
|
||||
for (token_list_t::iterator iter = mLineTokenList.begin();
|
||||
iter != mLineTokenList.end(); ++iter)
|
||||
{
|
||||
|
|
@ -761,7 +761,7 @@ void LLKeywords::dump()
|
|||
}
|
||||
|
||||
|
||||
llinfos << "LLKeywords::sDelimiterTokenList" << llendl;
|
||||
LL_INFOS() << "LLKeywords::sDelimiterTokenList" << LL_ENDL;
|
||||
for (token_list_t::iterator iter = mDelimiterTokenList.begin();
|
||||
iter != mDelimiterTokenList.end(); ++iter)
|
||||
{
|
||||
|
|
@ -772,12 +772,12 @@ void LLKeywords::dump()
|
|||
|
||||
void LLKeywordToken::dump()
|
||||
{
|
||||
llinfos << "[" <<
|
||||
LL_INFOS() << "[" <<
|
||||
mColor.mV[VX] << ", " <<
|
||||
mColor.mV[VY] << ", " <<
|
||||
mColor.mV[VZ] << "] [" <<
|
||||
wstring_to_utf8str(mToken) << "]" <<
|
||||
llendl;
|
||||
LL_ENDL;
|
||||
}
|
||||
|
||||
#endif // DEBUG
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ int main(int argc, char **argv)
|
|||
|
||||
if (!(options.has("pid") && options.has("dumpdir")))
|
||||
{
|
||||
llwarns << "Insufficient parameters to crash report." << llendl;
|
||||
LL_WARNS() << "Insufficient parameters to crash report." << LL_ENDL;
|
||||
}
|
||||
|
||||
if (! app.init())
|
||||
|
|
|
|||
|
|
@ -400,7 +400,7 @@ void LLFlickrConnect::uploadPhoto(LLPointer<LLImageFormatted> image, const std::
|
|||
}
|
||||
else
|
||||
{
|
||||
llwarns << "Image to upload is not a PNG or JPEG" << llendl;
|
||||
LL_WARNS() << "Image to upload is not a PNG or JPEG" << LL_ENDL;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ void LLFloaterGroupBulkBan::showForGroup(const LLUUID& group_id, uuid_vec_t* age
|
|||
// Make sure group_id isn't null
|
||||
if (group_id.isNull())
|
||||
{
|
||||
llwarns << "LLFloaterGroupInvite::showForGroup with null group_id!" << llendl;
|
||||
LL_WARNS() << "LLFloaterGroupInvite::showForGroup with null group_id!" << LL_ENDL;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1022,7 +1022,7 @@ void LLLoadHistoryThread::run()
|
|||
{
|
||||
loadHistory(mFileName, mMessages, mLoadParams);
|
||||
int count = mMessages->size();
|
||||
llinfos << "mMessages->size(): " << count << llendl;
|
||||
LL_INFOS() << "mMessages->size(): " << count << LL_ENDL;
|
||||
setFinished();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -387,7 +387,7 @@ void LLPanelGroupBulk::addUsers(uuid_vec_t& agent_ids)
|
|||
}
|
||||
else
|
||||
{
|
||||
llwarns << "llPanelGroupBulk: Selected avatar has no name: " << dest->getID() << llendl;
|
||||
LL_WARNS() << "llPanelGroupBulk: Selected avatar has no name: " << dest->getID() << LL_ENDL;
|
||||
names.push_back("(Unknown)");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -492,7 +492,7 @@ void LLPanelGroupInvite::addUsers(uuid_vec_t& agent_ids)
|
|||
}
|
||||
else
|
||||
{
|
||||
llwarns << "llPanelGroupInvite: Selected avatar has no name: " << dest->getID() << llendl;
|
||||
LL_WARNS() << "llPanelGroupInvite: Selected avatar has no name: " << dest->getID() << LL_ENDL;
|
||||
names.push_back("(Unknown)");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -397,7 +397,7 @@ void LLTwitterConnect::uploadPhoto(LLPointer<LLImageFormatted> image, const std:
|
|||
}
|
||||
else
|
||||
{
|
||||
llwarns << "Image to upload is not a PNG or JPEG" << llendl;
|
||||
LL_WARNS() << "Image to upload is not a PNG or JPEG" << LL_ENDL;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue