[PATCH] dvb-usb-urb printk fix
authorAndrew Morton <akpm@osdl.org>
Wed, 9 Nov 2005 05:35:54 +0000 (21:35 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 9 Nov 2005 15:56:06 +0000 (07:56 -0800)
drivers/media/dvb/dvb-usb/dvb-usb-urb.c: In function `dvb_usb_allocate_stream_buffers':
drivers/media/dvb/dvb-usb/dvb-usb-urb.c:199: warning: int format, different type arg (arg 4)

Don't assume that dma_addr_t is 32-bit.

(dvb has quite a few such warnings.  Please compile it with a 64-bit compiler,
fix them up - some are oopsable).

Cc: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/media/dvb/dvb-usb/dvb-usb-urb.c

index f5799a4c228e9610aa11151e97505f5430820e96..36b7048c02d26616a5f18794f0a7116cb5309f1c 100644 (file)
@@ -196,7 +196,9 @@ static int dvb_usb_allocate_stream_buffers(struct dvb_usb_device *d, int num, un
                        dvb_usb_free_stream_buffers(d);
                        return -ENOMEM;
                }
-               deb_mem("buffer %d: %p (dma: %d)\n",d->buf_num,d->buf_list[d->buf_num],d->dma_addr[d->buf_num]);
+               deb_mem("buffer %d: %p (dma: %llu)\n",
+                       d->buf_num, d->buf_list[d->buf_num],
+                       (unsigned long long)d->dma_addr[d->buf_num]);
                memset(d->buf_list[d->buf_num],0,size);
        }
        deb_mem("allocation successful\n");