Messages in this thread |  | | From | Keith Owens <> | Subject | Re: __release_region() printf format | Date | Wed, 20 Sep 2000 20:46:57 +1100 |
| |
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/
|  |