]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] 64bit fixes (printks)
authorAlexander Viro <viro@parcelfarce.linux.theplanet.co.uk>
Wed, 2 Feb 2005 05:18:28 +0000 (21:18 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 2 Feb 2005 05:18:28 +0000 (21:18 -0800)
the usual %d -> %zu for size_t

Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/media/dvb/frontends/dib3000-common.h
drivers/media/dvb/frontends/nxt2002.c
drivers/usb/atm/speedtch.c

index 5d28dcc51bbc9bac2227de6753afd9b2d53b8fc7..2286891da698b7377a6330891582a7674a1e05e2 100644 (file)
@@ -65,7 +65,7 @@ extern int dib3000_search_status(u16 irq,u16 lock);
 
 #define wr_foreach(a,v) { int i; \
        if (sizeof(a) != sizeof(v)) \
-               err("sizeof: %d %d is different",sizeof(a),sizeof(v));\
+               err("sizeof: %zu %zu is different",sizeof(a),sizeof(v));\
        for (i=0; i < sizeof(a)/sizeof(u16); i++) \
                wr(a[i],v[i]); \
        }
index 236d79144d5dbb6135c0357a37d9dfd01ba1f79c..a5a3ab9f6ec0a683d8f2660b35ca1692ff1c8357 100644 (file)
@@ -246,7 +246,7 @@ static int nxt2002_load_firmware (struct dvb_frontend* fe, const struct firmware
        u16 rambase,position,crc = 0;  
 
        dprintk("%s\n", __FUNCTION__);
-       dprintk("Firmware is %d bytes\n",fw->size);
+       dprintk("Firmware is %zu bytes\n",fw->size);
 
        /* Get the RAM base for this nxt2002 */
        i2c_readbytes(state,0x10,buf,1);
index 060607ec7a500f67793a6ae3fd4d952739292e6b..76b45b1d6609866f28547f3be1b628cb9aef0890 100644 (file)
@@ -494,7 +494,7 @@ static void speedtch_upload_firmware(struct speedtch_instance_data *instance,
                        dbg("speedtch_upload_firmware: write BLOCK1 to modem failed (%d)!", ret);
                        goto fail_release;
                }
-               dbg("speedtch_upload_firmware: BLOCK1 uploaded (%d bytes)", fw1->size);
+               dbg("speedtch_upload_firmware: BLOCK1 uploaded (%zu bytes)", fw1->size);
        }
 
        /* USB led blinking green, ADSL led off */
@@ -522,7 +522,7 @@ static void speedtch_upload_firmware(struct speedtch_instance_data *instance,
                        goto fail_release;
                }
        }
-       dbg("speedtch_upload_firmware: BLOCK3 uploaded (%d bytes)", fw2->size);
+       dbg("speedtch_upload_firmware: BLOCK3 uploaded (%zu bytes)", fw2->size);
 
        /* USB led static green, ADSL led static red */