[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>
This commit is contained in:
Al Viro 2005-04-26 07:43:41 -07:00 коммит произвёл Linus Torvalds
Родитель 8cf381ca3c
Коммит b76be681f8
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -143,7 +143,7 @@ static ssize_t tpm_transmit(struct tpm_chip *chip, const char *buf,
return -ENODATA; return -ENODATA;
if (count > bufsiz) { if (count > bufsiz) {
dev_err(&chip->pci_dev->dev, dev_err(&chip->pci_dev->dev,
"invalid count value %x %x \n", count, bufsiz); "invalid count value %x %zx \n", count, bufsiz);
return -E2BIG; return -E2BIG;
} }
@ -151,7 +151,7 @@ static ssize_t tpm_transmit(struct tpm_chip *chip, const char *buf,
if ((len = chip->vendor->send(chip, (u8 *) buf, count)) < 0) { if ((len = chip->vendor->send(chip, (u8 *) buf, count)) < 0) {
dev_err(&chip->pci_dev->dev, dev_err(&chip->pci_dev->dev,
"tpm_transmit: tpm_send: error %d\n", len); "tpm_transmit: tpm_send: error %zd\n", len);
return len; return len;
} }
@ -188,7 +188,7 @@ out_recv:
len = chip->vendor->recv(chip, (u8 *) buf, bufsiz); len = chip->vendor->recv(chip, (u8 *) buf, bufsiz);
if (len < 0) if (len < 0)
dev_err(&chip->pci_dev->dev, dev_err(&chip->pci_dev->dev,
"tpm_transmit: tpm_recv: error %d\n", len); "tpm_transmit: tpm_recv: error %zd\n", len);
up(&chip->tpm_mutex); up(&chip->tpm_mutex);
return len; return len;
} }