diff options
author | Al Viro <viro@www.linux.org.uk> | 2005-04-26 10:43:41 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-26 10:43:41 -0400 |
commit | b76be681f8b296c00f707220b9891934d5d74778 (patch) | |
tree | 366e343ef875ade6e76c4440053f5a5a47160924 /drivers/char/tpm | |
parent | 8cf381ca3c4a2410cea9615e205bc41bd4275e1e (diff) |
[PATCH] tpm 64bit fixes (size_t)
Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/tpm')
-rw-r--r-- | drivers/char/tpm/tpm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/char/tpm/tpm.c b/drivers/char/tpm/tpm.c index ca36087d4f8a..87235330fdbe 100644 --- a/drivers/char/tpm/tpm.c +++ b/drivers/char/tpm/tpm.c | |||
@@ -143,7 +143,7 @@ static ssize_t tpm_transmit(struct tpm_chip *chip, const char *buf, | |||
143 | return -ENODATA; | 143 | return -ENODATA; |
144 | if (count > bufsiz) { | 144 | if (count > bufsiz) { |
145 | dev_err(&chip->pci_dev->dev, | 145 | dev_err(&chip->pci_dev->dev, |
146 | "invalid count value %x %x \n", count, bufsiz); | 146 | "invalid count value %x %zx \n", count, bufsiz); |
147 | return -E2BIG; | 147 | return -E2BIG; |
148 | } | 148 | } |
149 | 149 | ||
@@ -151,7 +151,7 @@ static ssize_t tpm_transmit(struct tpm_chip *chip, const char *buf, | |||
151 | 151 | ||
152 | if ((len = chip->vendor->send(chip, (u8 *) buf, count)) < 0) { | 152 | if ((len = chip->vendor->send(chip, (u8 *) buf, count)) < 0) { |
153 | dev_err(&chip->pci_dev->dev, | 153 | dev_err(&chip->pci_dev->dev, |
154 | "tpm_transmit: tpm_send: error %d\n", len); | 154 | "tpm_transmit: tpm_send: error %zd\n", len); |
155 | return len; | 155 | return len; |
156 | } | 156 | } |
157 | 157 | ||
@@ -188,7 +188,7 @@ out_recv: | |||
188 | len = chip->vendor->recv(chip, (u8 *) buf, bufsiz); | 188 | len = chip->vendor->recv(chip, (u8 *) buf, bufsiz); |
189 | if (len < 0) | 189 | if (len < 0) |
190 | dev_err(&chip->pci_dev->dev, | 190 | dev_err(&chip->pci_dev->dev, |
191 | "tpm_transmit: tpm_recv: error %d\n", len); | 191 | "tpm_transmit: tpm_recv: error %zd\n", len); |
192 | up(&chip->tpm_mutex); | 192 | up(&chip->tpm_mutex); |
193 | return len; | 193 | return len; |
194 | } | 194 | } |