|
Message
From: =?unknown-8bit?Q?Gy=F6rgy?= 'nog' Jeney<nog@s...>
Date: Wed Jun 29 16:53:34 CEST 2005
Subject: [openrisc] [or1ksim #108] Fix PRIdREG
Hi,PRIdREG was forcing a 08 prefix to the `d' format specifier which was getting annoying to read and it is also wrong since the maximum value of a 32-bit number is more than 8 characters.
ChangeLog: * Remove 08 prefix from PRIdREG.
nog. -------------- next part -------------- diff -upr --unidirectional-new-file ./cpu/or1k/arch.h /home/nog/or1ksim-ac/cpu/or1k/arch.h --- ./cpu/or1k/arch.h 2005-02-09 18:03:40.000000000 +0100 +++ /home/nog/or1ksim-ac/cpu/or1k/arch.h 2005-06-05 09:35:31.000000000 +0200 @@ -33,7 +33,7 @@ typedef int32_t orreg_t; /* A signed reg #define PRIxADDR "08" PRIx32 /* How to print an openrisc address in hex */ #define PRIxREG "08" PRIx32 /* How to print an openrisc register in hex */ -#define PRIdREG "08" PRId32 /* How to print an openrisc register in decimals */ +#define PRIdREG PRId32 /* How to print an openrisc register in decimals */ #define ADDR_C(c) UINT32_C(c) #define REG_C(c) UINT32_C(c)
|