From b62b461bd3850d21c18056a94181828c94ea2f79 Mon Sep 17 00:00:00 2001 From: j_mayer Date: Wed, 4 Apr 2007 07:58:14 +0000 Subject: TARGET_FMT_ld may also be useful for debugging purposes. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2593 c046a42c-6fe2-441c-8c8c-71466251a162 --- cpu-defs.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cpu-defs.h') diff --git a/cpu-defs.h b/cpu-defs.h index 04fde7e892..46cda20174 100644 --- a/cpu-defs.h +++ b/cpu-defs.h @@ -44,10 +44,12 @@ typedef int32_t target_long; typedef uint32_t target_ulong; #define TARGET_FMT_lx "%08x" +#define TARGET_FMT_ld "%d" #elif TARGET_LONG_SIZE == 8 typedef int64_t target_long; typedef uint64_t target_ulong; #define TARGET_FMT_lx "%016" PRIx64 +#define TARGET_FMT_ld "%" PRId64 #else #error TARGET_LONG_SIZE undefined #endif -- cgit v1.2.3