From: "jidong xiao" <jidong.xiao@gmail.com>
To: "Randy Dunlap" <randy.dunlap@oracle.com>
Cc: "Vegard Nossum" <vegard.nossum@gmail.com>, linux-kernel@vger.kernel.org
Subject: Re: How to printk unsigned long long variable?
Date: Fri, 15 Jun 2007 23:39:59 +0800 [thread overview]
Message-ID: <4104961b0706150839t1a54ccdaq4ddc747d04538a19@mail.gmail.com> (raw)
In-Reply-To: <20070615083355.f5bdb784.randy.dunlap@oracle.com>
Thanks all.
Is this right?
dev->dev.dma_mask = bus->controller->dma_mask;
printk(KERN_ERR "hey,jason,see,dma_mask is
%llu\n",*(dev->dev.dma_mask));
On 6/15/07, Randy Dunlap <randy.dunlap@oracle.com> wrote:
> On Fri, 15 Jun 2007 17:04:00 +0200 Vegard Nossum wrote:
>
> > On 6/15/07, jidong xiao <jidong.xiao@gmail.com> wrote:
> > > typedef unsigned long long u64;
> > > u64 *dma_mask;
> > > Then how to use printk() to print out a dma_mask variable?
> >
> > In regular printf(), this would be specified by the format "%llu". Try that?
>
> and cast dma_mask to (unsigned long long), at least in kernel printk()
> calls.
>
> ---
> ~Randy
> *** Remember to use Documentation/SubmitChecklist when testing your code ***
>
next prev parent reply other threads:[~2007-06-15 15:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-15 14:59 jidong xiao
2007-06-15 15:04 ` Vegard Nossum
2007-06-15 15:33 ` Randy Dunlap
2007-06-15 15:39 ` jidong xiao [this message]
2007-06-15 16:14 ` Roland Dreier
2007-06-15 16:18 ` jidong xiao
2007-06-15 16:29 ` Jan Engelhardt
2007-06-15 18:41 ` Roland Dreier
2007-06-17 6:55 ` Stephen Rothwell
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=4104961b0706150839t1a54ccdaq4ddc747d04538a19@mail.gmail.com \
--to=jidong.xiao@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=randy.dunlap@oracle.com \
--cc=vegard.nossum@gmail.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®