When compiling this driver with WRITE_DEBUG defined (for extra debug output),
gcc outputs warnings for three similar printf statements.

The specifier in each printf statement is not totally correct.
This patch removes these warnings.

Patch attached and also available at
http://www.reactivated.net/patches/linux-kernel/2.6.0-test6/brlvger-debug-fix.patch


Daniel.
--- linux-2.6.0-test6/drivers/usb/misc/brlvger.c        2003-09-28 11:34:13.000000000 
+0100
+++ linux/drivers/usb/misc/brlvger.c    2003-10-01 14:22:54.105128472 +0100
@@ -591,14 +591,14 @@
                        int firstpart = 6 - off;
                        
 #ifdef WRITE_DEBUG
-                       dbg3("off: %d, rs: %d, count: %d, firstpart: %d",
+                       dbg3("off: %lld, rs: %d, count: %d, firstpart: %d",
                             off, rs, count, firstpart);
 #endif
 
                        firstpart = (firstpart < count) ? firstpart : count;
 
 #ifdef WRITE_DEBUG
-                       dbg3("off: %d", off);
+                       dbg3("off: %lld", off);
                        dbg3("firstpart: %d", firstpart);
 #endif
 
@@ -618,7 +618,7 @@
                        off +=2;
 
 #ifdef WRITE_DEBUG
-                       dbg3("off: %d, rs: %d, count: %d, firstpart: %d, "
+                       dbg3("off: %lld, rs: %d, count: %d, firstpart: %d, "
                                "written: %d",  off, rs, count, firstpart, written);
 #endif
                }

Reply via email to