Commit b62b461bd3850d21c18056a94181828c94ea2f79

Authored by j_mayer
1 parent bc98a7ef

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
Showing 1 changed file with 2 additions and 0 deletions
cpu-defs.h
... ... @@ -44,10 +44,12 @@
44 44 typedef int32_t target_long;
45 45 typedef uint32_t target_ulong;
46 46 #define TARGET_FMT_lx "%08x"
  47 +#define TARGET_FMT_ld "%d"
47 48 #elif TARGET_LONG_SIZE == 8
48 49 typedef int64_t target_long;
49 50 typedef uint64_t target_ulong;
50 51 #define TARGET_FMT_lx "%016" PRIx64
  52 +#define TARGET_FMT_ld "%" PRId64
51 53 #else
52 54 #error TARGET_LONG_SIZE undefined
53 55 #endif
... ...