lkml.org 
[lkml]   [2000]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: __release_region() printf format
Date
On Tue, 19 Sep 2000 00:11:59 +0200, 
Pavel Machek <pavel@suse.cz> wrote:
>Hi!
>
>> __release_region() always uses `%04lx', while start and end may be larger
>> (e.g. for release_mem_region()).
>
>What about making it %lx-%lx without any numbers?

If you really care about getting the exact number of leading zeroes,
this is portable (assuming 2 hex digits per byte).

printk("Trying to free nonexistent resource <%0*lx-%0*lx>\n",
2*sizeof(start), start, 2*sizeof(end), end);

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

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.033 / U:12.560 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site