From: linux@audioscience.com
To: patch@alsa-project.org
Cc: tiwai@suse.de,
Eliot Blennerhassett <eblennerhassett@audioscience.com>,
alsa-devel@alsa-project.org,
Eliot Blennerhassett <eliot@zaphod.clear.net.nz>
Subject: [PATCH - asihpi 1/3] Fix format in portable way.
Date: Thu, 21 Aug 2008 13:29:54 +1200 [thread overview]
Message-ID: <1219282196-20834-1-git-send-email-linux@audioscience.com> (raw)
From: Eliot Blennerhassett <eliot@zaphod.(none)>
Signed-off-by: Eliot Blennerhassett <eblennerhassett@audioscience.com>
diff --git a/pci/asihpi/hpicmn.c b/pci/asihpi/hpicmn.c
index 12bc6ad..c56e60d 100644
--- a/pci/asihpi/hpicmn.c
+++ b/pci/asihpi/hpicmn.c
@@ -288,8 +288,8 @@ short HpiCheckBufferMapping(
sizeof(((struct hpi_control_cache_pad *)(NULL))->m) }
struct pad_ofs_size {
- size_t offset;
- size_t field_size;
+ unsigned int offset;
+ unsigned int field_size;
};
static struct pad_ofs_size aPadDesc[] = {
@@ -441,10 +441,10 @@ short HpiCheckControlCache(
else {
unsigned int index =
HPI_CTL_ATTR_INDEX(phm->u.c.wAttribute) - 1;
- size_t offset = phm->u.c.dwParam1;
- size_t pad_string_len, field_size;
+ unsigned int offset = phm->u.c.dwParam1;
+ unsigned int pad_string_len, field_size;
char *pad_string;
- size_t tocopy;
+ unsigned int tocopy;
HPI_DEBUG_LOG(VERBOSE,
"PADS HPI_PADS_ %d\n", phm->u.c.wAttribute);
@@ -472,7 +472,7 @@ short HpiCheckControlCache(
tocopy = sizeof(phr->u.cu.chars8.szData);
HPI_DEBUG_LOG(VERBOSE,
- "PADS memcpy(%zd), offset %zd \n", tocopy,
+ "PADS memcpy(%d), offset %d \n", tocopy,
offset);
memcpy(phr->u.cu.chars8.szData, &pad_string[offset],
tocopy);
--
1.5.4.3
next reply other threads:[~2008-08-21 1:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-21 1:29 linux [this message]
2008-08-21 1:29 ` [PATCH - asihpi 2/3] Include adapter buffer alloc inside adapter mutex linux
2008-08-21 1:29 ` [PATCH - asihpi 3/3] Add support for ASI50xx SSX (multichannel) mode linux
2008-08-21 9:08 ` [PATCH - asihpi 1/3] Fix format in portable way Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1219282196-20834-1-git-send-email-linux@audioscience.com \
--to=linux@audioscience.com \
--cc=alsa-devel@alsa-project.org \
--cc=eblennerhassett@audioscience.com \
--cc=eliot@zaphod.clear.net.nz \
--cc=patch@alsa-project.org \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.