From: Andreas Schwab <schwab@suse.de>
To: Bart Hartgers <bart@etpmod.phys.tue.nl>
Cc: maze@cela.pl, wdebruij@dds.nl, zstingx@hotmail.com,
linux-kernel@vger.kernel.org
Subject: Re: printk and long long
Date: Wed, 11 Feb 2004 15:13:48 +0100 [thread overview]
Message-ID: <je3c9h66w3.fsf@sykes.suse.de> (raw)
In-Reply-To: <20040211135456.B33ED2BD4@etpmod.phys.tue.nl> (Bart Hartgers's message of "Wed, 11 Feb 2004 14:54:56 +0100 (CET)")
Bart Hartgers <bart@etpmod.phys.tue.nl> writes:
> On 11 Feb, Maciej Zenczykowski wrote:
>>> how about simply using a shift to output two regular longs, i.e.
>>>
>>> printk("%ld%ld",loff_t >> (sizeof(long) * 8), loff_t << sizeof(long) * 8 >>
>>> sizeof(long) * 8);
>>
>> I'd venture to guess you'd also have to cast the above to long.
>>
>> Cheers,
>> MaZe.
>
> And use %lx%lx ?
Rather %lx%0lx.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
next prev parent reply other threads:[~2004-02-11 14:13 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-11 13:54 Bart Hartgers
2004-02-11 14:04 ` YOSHIFUJI Hideaki / 吉藤英明
2004-02-11 14:13 ` Andreas Schwab [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-02-11 12:49 sting sting
2004-02-11 13:35 ` wdebruij
2004-02-11 13:48 ` Maciej Zenczykowski
2004-02-11 14:04 ` vda
2004-02-11 15:58 ` Maciej Zenczykowski
2004-02-11 19:41 ` H. Peter Anvin
2004-02-11 20:32 ` Måns Rullgård
2004-02-11 21:46 ` Chris Friesen
2004-02-11 22:38 ` Timothy Miller
2004-02-11 22:23 ` Andreas Schwab
2004-02-11 23:11 ` Måns Rullgård
2004-02-11 23:53 ` H. Peter Anvin
2004-02-11 16:59 ` Dick Streefland
2004-02-11 14:03 ` Måns Rullgård
2004-02-11 14:15 ` wdebruij
2004-02-11 15:23 ` Richard B. Johnson
2004-02-13 0:26 ` Peter Chubb
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=je3c9h66w3.fsf@sykes.suse.de \
--to=schwab@suse.de \
--cc=bart@etpmod.phys.tue.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=maze@cela.pl \
--cc=wdebruij@dds.nl \
--cc=zstingx@hotmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®