56 lines
1.9 KiB
Diff
56 lines
1.9 KiB
Diff
From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Bri=C3=A8re?= <fbriere@fbriere.net>
|
|
Date: Fri, 20 May 2011 12:50:53 -0400
|
|
Subject: Linux module: Use "%zu" when printing size_t variables
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Signed-off-by: Frédéric Brière <fbriere@fbriere.net>
|
|
|
|
Forwarded: yes
|
|
---
|
|
sys/linux/cbm_module.c | 8 ++++----
|
|
1 files changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/sys/linux/cbm_module.c b/sys/linux/cbm_module.c
|
|
index 4b50626..dd41b78 100644
|
|
--- a/sys/linux/cbm_module.c
|
|
+++ b/sys/linux/cbm_module.c
|
|
@@ -447,7 +447,7 @@ static int cbm_read(struct inode *inode, struct file *f, char *buf, int count)
|
|
int ok = 0;
|
|
unsigned long flags;
|
|
|
|
- DPRINTK("cbm_read: %d bytes\n", count);
|
|
+ DPRINTK("cbm_read: %zu bytes\n", count);
|
|
|
|
if(eoi) {
|
|
return 0;
|
|
@@ -523,7 +523,7 @@ static int cbm_read(struct inode *inode, struct file *f, char *buf, int count)
|
|
return -EIO;
|
|
}
|
|
|
|
- DPRINTK("received=%d, count=%d, ok=%d, eoi=%d\n",
|
|
+ DPRINTK("received=%zu, count=%zu, ok=%d, eoi=%d\n",
|
|
received, count, ok, eoi);
|
|
|
|
return received;
|
|
@@ -539,7 +539,7 @@ static int cbm_raw_write(const char *buf, size_t cnt, int atn, int talk)
|
|
|
|
eoi = cbm_irq_count = 0;
|
|
|
|
- DPRINTK("cbm_write: %d bytes, atn=%d\n", cnt, atn);
|
|
+ DPRINTK("cbm_write: %zu bytes, atn=%d\n", cnt, atn);
|
|
|
|
RELEASE(DATA_OUT);
|
|
SET(CLK_OUT | (atn ? ATN_OUT : 0));
|
|
@@ -593,7 +593,7 @@ static int cbm_raw_write(const char *buf, size_t cnt, int atn, int talk)
|
|
rv = -ENODEV;
|
|
}
|
|
}
|
|
- DPRINTK("%d bytes sent, rv=%d\n", sent, rv);
|
|
+ DPRINTK("%zu bytes sent, rv=%d\n", sent, rv);
|
|
|
|
if(talk && (rv == 0)) {
|
|
local_irq_save(flags);
|
|
--
|