lkml.org 
[lkml]   [1999]   [Jul]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: The great alpha compile warning hunt
On Fri, Jul 23, 1999 at 08:21:08AM +0100, Sean Hunter wrote:
> I found that, since the "%Zd" etc type arguments to printk (for
> printing size_t args) are not supported, I was usually casting to long
> and doing printk "%ld", which I think works everywhere. Would a patch
> to printk to accept "%Zd" etc be worthwhile?

A patch for %Z for size_t (please do pointer differences too!) would
be much appreciated. I currently have ugly casts to unsigned long in a
few places in my drivers. They should also go into 2.2.x and 2.0.x to
be useful to kernel-version-independent driver code.

I imagine it will be some time before all size_t and ptrdiff_t code
has been fixed.

Thanks,
Giuliano Procida.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.038 / U:0.564 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site