On alpha, pointer and long are 64 bit. But int is 32 bit. Here is a
patch for drivers/block/nbd.c.
Thanks.
-- H.J. Lu (hjl@gnu.org)--- Index: drivers/block/nbd.c =================================================================== RCS file: /home/work/cvs/linux/linux/drivers/block/nbd.c,v retrieving revision 1.1.1.5 diff -u -r1.1.1.5 nbd.c --- nbd.c 1998/05/21 15:05:55 1.1.1.5 +++ nbd.c 1998/08/01 22:57:39 @@ -110,8 +110,8 @@ if (result <= 0) { #ifdef PARANOIA - printk(KERN_ERR "NBD: %s - sock=%d at buf=%d, size=%d returned %d.\n", - send ? "send" : "receive", (int) sock, (int) buf, size, result); + printk(KERN_ERR "NBD: %s - sock=%ld at buf=%ld, size=%d returned %d.\n", + send ? "send" : "receive", (long) sock, (long) buf, size, result); #endif break; } @@ -371,8 +371,8 @@ return 0; #ifdef PARANOIA case NBD_PRINT_DEBUG: - printk(KERN_INFO "NBD device %d: head = %x, tail = %x. Global: in %d, out %d\n", - dev, (int) lo->head, (int) lo->tail, requests_in, requests_out); + printk(KERN_INFO "NBD device %d: head = %lx, tail = %lx. Global: in %d, out %d\n", + dev, (long) lo->head, (long) lo->tail, requests_in, requests_out); return 0; #endif }- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html