[OpenBIOS] [PATCH 16/16] Fix the FMT_cell and FMT_ucell definitions for SPARC32.
Andreas Färber
andreas.faerber at web.de
Thu Dec 30 19:39:47 CET 2010
Am 30.12.2010 um 19:33 schrieb Andreas Färber:
> Am 30.12.2010 um 19:07 schrieb Mark Cave-Ayland:
>
>> This is required to enable a build with CONFIG_DEBUG_OFMEM set to
>> true to complete successfully.
>>
>> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at siriusit.co.uk>
>> ---
>> openbios-devel/include/arch/sparc32/types.h | 4 ++--
>> 1 files changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/openbios-devel/include/arch/sparc32/types.h b/openbios-
>> devel/include/arch/sparc32/types.h
>> index 444d648..e4f0f0d 100644
>> --- a/openbios-devel/include/arch/sparc32/types.h
>> +++ b/openbios-devel/include/arch/sparc32/types.h
>> @@ -46,8 +46,8 @@ typedef uint32_t ucell;
>> typedef long long dcell;
>> typedef unsigned long long ducell;
>>
>> -#define FMT_cell "%ld"
>> -#define FMT_ucell "%lu"
>> +#define FMT_cell "%d"
>> +#define FMT_ucell "%u"
>
> Please use PRI{d,x}32. This may or may not require a pending patch
> of mine from the prom_args_t series.
PRI{d,u}32 of course.
>
>> #define FMT_ucellx "%08x"
>> #define FMT_ucellX "%08X"
>>
>> --
>> 1.7.2.3
>>
>>
>> --
>> OpenBIOS http://openbios.org/
>> Mailinglist: http://lists.openbios.org/mailman/listinfo
>> Free your System - May the Forth be with you
>
>
> --
> OpenBIOS http://openbios.org/
> Mailinglist: http://lists.openbios.org/mailman/listinfo
> Free your System - May the Forth be with you
More information about the OpenBIOS
mailing list