[PATCH] 64bit resource: fix up printks for resources in pcmcia drivers
This is needed if we wish to change the size of the resource structures. Based on an original patch from Vivek Goyal <vgoyal@in.ibm.com> Cc: Vivek Goyal <vgoyal@in.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
@@ -756,8 +756,9 @@ static int tcic_set_mem_map(struct pcmcia_socket *sock, struct pccard_mem_map *m
|
||||
u_long base, len, mmap;
|
||||
|
||||
debug(1, "SetMemMap(%d, %d, %#2.2x, %d ns, "
|
||||
"%#lx-%#lx, %#x)\n", psock, mem->map, mem->flags,
|
||||
mem->speed, mem->res->start, mem->res->end, mem->card_start);
|
||||
"%#llx-%#llx, %#x)\n", psock, mem->map, mem->flags,
|
||||
mem->speed, (unsigned long long)mem->res->start,
|
||||
(unsigned long long)mem->res->end, mem->card_start);
|
||||
if ((mem->map > 3) || (mem->card_start > 0x3ffffff) ||
|
||||
(mem->res->start > 0xffffff) || (mem->res->end > 0xffffff) ||
|
||||
(mem->res->start > mem->res->end) || (mem->speed > 1000))
|
||||
|
Reference in New Issue
Block a user