On Tue, 19 Sep 2000 00:11:59 +0200, 
Pavel Machek <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/

Reply via email to