libftdi Archives

Subject: Re: Another approach to get frint formatting right

From: Uwe Bonnes <bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Mon, 27 Sep 2010 13:20:38 +0200
>>>>> "Thomas" == Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx> writes:

    Thomas> Moin Uwe, On Sunday, 26. September 2010 20:05:17 Michael Plante
    Thomas> wrote:
    >> Uwe Bonnes wrote: >> Thanks for Jim Paris for pointing out the wrong
    >> approach in my last >> attempt. It seems however the PRIu64 doesn't
    >> play with fprintf(). Or >> are there other tricks around PRIxNN?
    >> 
    >> You could just print it as two 32-bit hex numbers, using masks and
    >> shifts...

    Thomas> Do you want me to apply the previous patch or should I wait a
    Thomas> bit?

Despite the type in the header, please apply.

I tried with PRIxNN, but couldn't get it to work, probably by some typos...
-- 
Uwe Bonnes                bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread