Fixed a debug mode output so the compiler can check the printf expression.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4832 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
17a9bdb3e7
commit
3df9b4804c
|
@ -526,7 +526,7 @@ static bool getWord(String& buf, String& word, bool unescape = false)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
static void dumpData(int debugLevel, String message, void* obj, NamedList& params,
|
static void dumpData(int debugLevel, const char* message, void* obj, NamedList& params,
|
||||||
DataBlock data = DataBlock::empty())
|
DataBlock data = DataBlock::empty())
|
||||||
{
|
{
|
||||||
if (obj) {
|
if (obj) {
|
||||||
|
@ -534,7 +534,7 @@ static void dumpData(int debugLevel, String message, void* obj, NamedList& param
|
||||||
params.dump(tmp,"\r\n ",'\'',true);
|
params.dump(tmp,"\r\n ",'\'',true);
|
||||||
String str;
|
String str;
|
||||||
str.hexify(data.data(),data.length(),' ');
|
str.hexify(data.data(),data.length(),' ');
|
||||||
Debug(&__plugin,debugLevel,message + " [%p] - \r\nparams='%s',\r\ndata='%s'",obj,tmp.c_str(),str.c_str());
|
Debug(&__plugin,debugLevel,"%s [%p]\r\nparams='%s',\r\ndata='%s'",message,obj,tmp.c_str(),str.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue