[lkml]   [2000]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: __release_region() printf format
On Tue, 19 Sep 2000 00:11:59 +0200, 
Pavel Machek <> wrote:
>> __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
Please read the FAQ at

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