linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* printk long long
@ 2002-10-30  2:20 Hai Huang
  2002-10-30 18:06 ` Randy.Dunlap
  0 siblings, 1 reply; 4+ messages in thread
From: Hai Huang @ 2002-10-30  2:20 UTC (permalink / raw)
  To: linux-mm

Hi everyone,

As the title, I've tried couple different things to print a long
long variable using printk (by %ll, %qd, ...) but without success.
Anyone knows the right format?

Thanks

-
Hai Huang

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: printk long long
  2002-10-30  2:20 printk long long Hai Huang
@ 2002-10-30 18:06 ` Randy.Dunlap
  2002-10-30 18:20   ` Christoph Hellwig
  0 siblings, 1 reply; 4+ messages in thread
From: Randy.Dunlap @ 2002-10-30 18:06 UTC (permalink / raw)
  To: Hai Huang; +Cc: linux-mm

On Tue, 29 Oct 2002, Hai Huang wrote:

| As the title, I've tried couple different things to print a long
| long variable using printk (by %ll, %qd, ...) but without success.
| Anyone knows the right format?

%L

see linux/lib/vsprintf.c

-- 
~Randy

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: printk long long
  2002-10-30 18:06 ` Randy.Dunlap
@ 2002-10-30 18:20   ` Christoph Hellwig
  2002-10-30 20:20     ` Randy.Dunlap
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph Hellwig @ 2002-10-30 18:20 UTC (permalink / raw)
  To: Randy.Dunlap; +Cc: Hai Huang, linux-mm

On Wed, Oct 30, 2002 at 10:06:01AM -0800, Randy.Dunlap wrote:
> On Tue, 29 Oct 2002, Hai Huang wrote:
> 
> | As the title, I've tried couple different things to print a long
> | long variable using printk (by %ll, %qd, ...) but without success.
> | Anyone knows the right format?
> 
> %L
> 
> see linux/lib/vsprintf.c

%ll is better, as that's what userspace understands, too.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: printk long long
  2002-10-30 18:20   ` Christoph Hellwig
@ 2002-10-30 20:20     ` Randy.Dunlap
  0 siblings, 0 replies; 4+ messages in thread
From: Randy.Dunlap @ 2002-10-30 20:20 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: Hai Huang, linux-mm

On Wed, 30 Oct 2002, Christoph Hellwig wrote:

| On Wed, Oct 30, 2002 at 10:06:01AM -0800, Randy.Dunlap wrote:
| > On Tue, 29 Oct 2002, Hai Huang wrote:
| >
| > | As the title, I've tried couple different things to print a long
| > | long variable using printk (by %ll, %qd, ...) but without success.
| > | Anyone knows the right format?
| >
| > %L
| >
| > see linux/lib/vsprintf.c
|
| %ll is better, as that's what userspace understands, too.

Fair enough.

But he said that he tried "%ll", so maybe he didn't try "%lld"
or "%llx"...?

I was probably just going by what I see most of in the
kernel source tree, which is "%L".

-- 
~Randy

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-10-30 20:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-30  2:20 printk long long Hai Huang
2002-10-30 18:06 ` Randy.Dunlap
2002-10-30 18:20   ` Christoph Hellwig
2002-10-30 20:20     ` Randy.Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox