Add wine_dbgstr_longlong.

svn path=/trunk/; revision=12755
This commit is contained in:
Filip Navara 2005-01-03 14:46:08 +00:00
parent fb1c02d7d1
commit 28f15433b0
2 changed files with 8 additions and 0 deletions

View file

@ -37,6 +37,7 @@ struct _GUID;
extern const char *wine_dbgstr_an( const char * s, int n );
extern const char *wine_dbgstr_wn( const wchar_t *s, int n );
extern const char *wine_dbgstr_guid( const struct _GUID *id );
extern const char *wine_dbgstr_longlong( unsigned long long ll );
extern const char *wine_dbg_sprintf( const char *format, ... );
inline static const char *debugstr_an( const char * s, int n ) { return wine_dbgstr_an( s, n ); }

View file

@ -25,6 +25,7 @@
#include <wine/config.h>
#include <wine/port.h>
#include <wine/debug.h>
/* ---------------------------------------------------------------------- */
@ -203,6 +204,12 @@ const char *wine_dbgstr_guid(const GUID *id)
return str;
}
const char *wine_dbgstr_longlong( unsigned long long ll )
{
if (ll >> 32) return wine_dbg_sprintf( "%lx%08lx", (unsigned long)(ll >> 32), (unsigned long)ll );
else return wine_dbg_sprintf( "%lx", (unsigned long)ll );
}
/* varargs wrapper for __wine_dbg_vsprintf */
const char *wine_dbg_sprintf( const char *format, ... )
{