From ed70becf9c47f072926b140f7669fe04f163dab2 Mon Sep 17 00:00:00 2001
From: Michele Calgaro <michele.calgaro@yahoo.it>
Date: Tue, 20 Jan 2026 19:28:57 +0900
Subject: Fix debug format strings

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
---
 src/kvirc/kvs/kvi_kvs_variant.cpp | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/kvirc/kvs/kvi_kvs_variant.cpp b/src/kvirc/kvs/kvi_kvs_variant.cpp
index 14608be..e190beb 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;
 	}
 }
-- 
cgit v1.2.3

