Commit ba6dbd1e authored by Daniel Drake's avatar Daniel Drake Committed by Greg Kroah-Hartman

[PATCH] USB brlvger: Debug code fixes

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.
parent 274cf171
......@@ -591,14 +591,14 @@ brlvger_write(struct file *file, const char __user *buffer,
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 @@ brlvger_write(struct file *file, const char __user *buffer,
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
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment