Skip to content

Commit

Permalink
use macro for pointer format string
Browse files Browse the repository at this point in the history
  • Loading branch information
gorlak committed Sep 29, 2014
1 parent 3826180 commit 95c4b5c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MetaType.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ MetaType::~MetaType()
void MetaType::Register() const
{
const char* type = MetaIds::Strings[ GetMetaId() ];
Log::Debug( TXT( "Reflect %s: 0x%p, Size: %4d, Name: %s (0x%08x)\n" ), type, this, m_Size, m_Name, Crc32( m_Name ) );
Log::Debug( TXT( "Reflect %s: 0x%"HELIUM_PRINT_POINTER", Size: %4d, Name: %s (0x%08X)\n" ), type, this, m_Size, m_Name, Crc32( m_Name ) );
}

void MetaType::Unregister() const
Expand Down
2 changes: 1 addition & 1 deletion Object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ void ObjectRefCountSupport::Shutdown()

HELIUM_TRACE(
TraceLevels::Warning,
TXT( " - 0x%p: (%" ) PRIu16 TXT( " strong ref(s), %" ) PRIu16 TXT( " weak ref(s))\n" ),
TXT( " - 0x%"HELIUM_PRINT_POINTER": (%" ) PRIu16 TXT( " strong ref(s), %" ) PRIu16 TXT( " weak ref(s))\n" ),
pProxy,
pProxy->GetStrongRefCount(),
pProxy->GetWeakRefCount() );
Expand Down
2 changes: 1 addition & 1 deletion Registry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ bool Registry::RegisterType(const MetaType* type)
Pair< M_HashToType::Iterator, bool > result = m_TypesByHash.Insert( M_HashToType::ValueType( crc, type ) );
if ( !HELIUM_VERIFY( result.Second() ) )
{
Log::Error( TXT( "Re-registration of type %s, could be ambigouous crc: 0x%08x\n" ), type->m_Name, crc );
Log::Error( TXT( "Re-registration of type %s, could be ambigouous crc: 0x%08X\n" ), type->m_Name, crc );
HELIUM_BREAK();
return false;
}
Expand Down

0 comments on commit 95c4b5c

Please sign in to comment.