diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-01-20 19:28:57 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-01-23 20:47:00 +0900 |
| commit | ed70becf9c47f072926b140f7669fe04f163dab2 (patch) | |
| tree | 0459bb13109c605cbe3781b977c11f5598dd103c | |
| parent | e7c2992a48fdd1292571214f31e7f367dd61a1cc (diff) | |
| download | kvirc-ed70becf9c47f072926b140f7669fe04f163dab2.tar.gz kvirc-ed70becf9c47f072926b140f7669fe04f163dab2.zip | |
Fix debug format strings
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
| -rw-r--r-- | src/kvirc/kvs/kvi_kvs_variant.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/kvirc/kvs/kvi_kvs_variant.cpp b/src/kvirc/kvs/kvi_kvs_variant.cpp index 14608bea..e190beb1 100644 --- a/src/kvirc/kvs/kvi_kvs_variant.cpp +++ b/src/kvirc/kvs/kvi_kvs_variant.cpp @@ -598,7 +598,7 @@ void KviKvsVariant::asString(TQString &szBuffer) const case KviKvsVariantData::Boolean: szBuffer.setNum(m_pData->m_u.bBoolean ? 1 : 0); break; case KviKvsVariantData::HObject: if(m_pData->m_u.hObject) - KviTQString::sprintf(szBuffer,"object[%lx]",m_pData->m_u.hObject); + KviTQString::sprintf(szBuffer,"object[%p]",m_pData->m_u.hObject); else szBuffer = "null-object"; break; @@ -626,18 +626,18 @@ void KviKvsVariant::dump(const char * prefix) const { if(!m_pData) { - tqDebug("%s Nothing [this=0x%lx]",prefix,this); + tqDebug("%s Nothing [this=0x%p]",prefix,this); return; } switch(m_pData->m_eType) { - case KviKvsVariantData::String: tqDebug("%s String(%s) [this=0x%lx]",prefix,m_pData->m_u.pString->utf8().data(),this); break; - case KviKvsVariantData::Array: tqDebug("%s Array(ptr=0x%lx) [this=0x%lx]",prefix,m_pData->m_u.pArray,this); break; - case KviKvsVariantData::Hash: tqDebug("%s Hash(ptr=0x%lx,dict=0x%lx) [this=0x%lx]",prefix,m_pData->m_u.pHash,m_pData->m_u.pHash->dict(),this); break; - case KviKvsVariantData::Integer: tqDebug("%s Integer(%d) [this=0x%lx]",prefix,m_pData->m_u.iInteger,this); break; - case KviKvsVariantData::Real: tqDebug("%s Real(%f) [this=0x%lx]",prefix,*(m_pData->m_u.pReal),this); break; - case KviKvsVariantData::Boolean: tqDebug("%s Boolean(%s) [this=0x%lx]",prefix,m_pData->m_u.bBoolean ? "true" : "false",this); break; - case KviKvsVariantData::HObject: tqDebug("%s HObject(%lx) [this=0x%lx]",prefix,m_pData->m_u.hObject,this); break; + case KviKvsVariantData::String: tqDebug("%s String(%s) [this=0x%p]",prefix,m_pData->m_u.pString->utf8().data(),this); break; + case KviKvsVariantData::Array: tqDebug("%s Array(ptr=0x%p) [this=0x%p]",prefix,m_pData->m_u.pArray,this); break; + case KviKvsVariantData::Hash: tqDebug("%s Hash(ptr=0x%p,dict=0x%p) [this=0x%p]",prefix,m_pData->m_u.pHash,m_pData->m_u.pHash->dict(),this); break; + case KviKvsVariantData::Integer: tqDebug("%s Integer(%ld) [this=0x%p]",prefix,m_pData->m_u.iInteger,this); break; + case KviKvsVariantData::Real: tqDebug("%s Real(%f) [this=0x%p]",prefix,*(m_pData->m_u.pReal),this); break; + case KviKvsVariantData::Boolean: tqDebug("%s Boolean(%s) [this=0x%p]",prefix,m_pData->m_u.bBoolean ? "true" : "false",this); break; + case KviKvsVariantData::HObject: tqDebug("%s HObject(%p) [this=0x%p]",prefix,m_pData->m_u.hObject,this); break; default: /* make gcc happy */ break; } } |
