fix some size_t printf specs (32/64bit problem)

This commit is contained in:
Fischlurch 2011-12-19 03:02:48 +01:00
parent fa0588b584
commit 7fc8473337
4 changed files with 6 additions and 6 deletions

View file

@ -66,12 +66,12 @@ namespace asset {
, id(AssetManager::reg (this, idi))
, enabled(true)
{
TRACE (assetmem, "ctor Asset(id=%lu) : adr=%p %s", size_t(id), this, cStr(this->ident) );
TRACE (assetmem, "ctor Asset(id=%zu) : adr=%p %s", size_t(id), this, cStr(this->ident) );
}
Asset::~Asset ()
{
TRACE (assetmem, "dtor Asset(id=%lu) : adr=%p", size_t(id), this );
TRACE (assetmem, "dtor Asset(id=%zu) : adr=%p", size_t(id), this );
}

View file

@ -134,7 +134,7 @@ namespace session {
ScopePath::~ScopePath()
{
WARN_IF (refcount_, session, "Destroying a scope path frame with ref-count=%lu", refcount_);
WARN_IF (refcount_, session, "Destroying a scope path frame with ref-count=%zu", refcount_);
}

View file

@ -134,7 +134,7 @@ namespace test {
subInterface.eat (b13);
me_can_has_more_numberz.eat();
INFO (test, "SizeOf = %lu", sizeof(me_can_has_more_numberz));
INFO (test, "SizeOf = %zu", sizeof(me_can_has_more_numberz));
}
};

View file

@ -108,8 +108,8 @@ namespace test{
TRACE (test, "holder at %p", &holder);
TRACE (test, "object at %p", holder.get() );
TRACE (test, "size(object) = %lu", sizeof(*holder));
TRACE (test, "size(holder) = %lu", sizeof(holder));
TRACE (test, "size(object) = %zu", sizeof(*holder));
TRACE (test, "size(holder) = %zu", sizeof(holder));
}
CHECK (0 == Dummy::checksum());
}