linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Randy Dunlap <randy.dunlap@oracle.com>
To: "Vegard Nossum" <vegard.nossum@gmail.com>
Cc: "jidong xiao" <jidong.xiao@gmail.com>, linux-kernel@vger.kernel.org
Subject: Re: How to printk unsigned long long variable?
Date: Fri, 15 Jun 2007 08:33:55 -0700	[thread overview]
Message-ID: <20070615083355.f5bdb784.randy.dunlap@oracle.com> (raw)
In-Reply-To: <19f34abd0706150804w69ce36c0i9e7f9a015895ac0c@mail.gmail.com>

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 ***

  reply	other threads:[~2007-06-15 15:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-15 14:59 How to printk unsigned long long variable? jidong xiao
2007-06-15 15:04 ` Vegard Nossum
2007-06-15 15:33   ` Randy Dunlap [this message]
2007-06-15 15:39     ` jidong xiao
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=20070615083355.f5bdb784.randy.dunlap@oracle.com \
    --to=randy.dunlap@oracle.com \
    --cc=jidong.xiao@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --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;
as well as URLs for NNTP newsgroup(s).