All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH - asihpi 1/3] Fix format in portable way.
@ 2008-08-21  1:29 linux
  2008-08-21  1:29 ` [PATCH - asihpi 2/3] Include adapter buffer alloc inside adapter mutex linux
  2008-08-21  9:08 ` [PATCH - asihpi 1/3] Fix format in portable way Takashi Iwai
  0 siblings, 2 replies; 4+ messages in thread
From: linux @ 2008-08-21  1:29 UTC (permalink / raw)
  To: patch; +Cc: tiwai, Eliot Blennerhassett, alsa-devel, Eliot Blennerhassett

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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-08-21  9:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-21  1:29 [PATCH - asihpi 1/3] Fix format in portable way linux
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

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.