diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-07-23 08:28:37 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-07-23 08:28:37 -0400 |
commit | 89350640439e0160056de26995d52deb18202b3e (patch) | |
tree | 1aa5dbfc258d1992ec3da2dc84fcd1ea229dad77 /sound | |
parent | cedb8118e8cef21a2b73fd9cb70660ac19124c16 (diff) |
ALSA: pcm - Fix warnings in debug loggings
Add proper cast.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/core/pcm_lib.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sound/core/pcm_lib.c b/sound/core/pcm_lib.c index 065eaf0a386c..d315f72949f4 100644 --- a/sound/core/pcm_lib.c +++ b/sound/core/pcm_lib.c | |||
@@ -238,12 +238,12 @@ static int snd_pcm_update_hw_ptr_interrupt(struct snd_pcm_substream *substream) | |||
238 | pcm_debug_name(substream, name, sizeof(name)); | 238 | pcm_debug_name(substream, name, sizeof(name)); |
239 | snd_printd("period_update: %s: pos=0x%x/0x%x/0x%x, " | 239 | snd_printd("period_update: %s: pos=0x%x/0x%x/0x%x, " |
240 | "hwptr=0x%lx, hw_base=0x%lx, hw_intr=0x%lx\n", | 240 | "hwptr=0x%lx, hw_base=0x%lx, hw_intr=0x%lx\n", |
241 | name, pos, | 241 | name, (unsigned int)pos, |
242 | (int)runtime->period_size, | 242 | (unsigned int)runtime->period_size, |
243 | (int)runtime->buffer_size, | 243 | (unsigned int)runtime->buffer_size, |
244 | (long)old_hw_ptr, | 244 | (unsigned long)old_hw_ptr, |
245 | (long)runtime->hw_ptr_base, | 245 | (unsigned long)runtime->hw_ptr_base, |
246 | (long)runtime->hw_ptr_interrupt); | 246 | (unsigned long)runtime->hw_ptr_interrupt); |
247 | } | 247 | } |
248 | hw_base = runtime->hw_ptr_base; | 248 | hw_base = runtime->hw_ptr_base; |
249 | new_hw_ptr = hw_base + pos; | 249 | new_hw_ptr = hw_base + pos; |
@@ -370,12 +370,12 @@ int snd_pcm_update_hw_ptr(struct snd_pcm_substream *substream) | |||
370 | pcm_debug_name(substream, name, sizeof(name)); | 370 | pcm_debug_name(substream, name, sizeof(name)); |
371 | snd_printd("hw_update: %s: pos=0x%x/0x%x/0x%x, " | 371 | snd_printd("hw_update: %s: pos=0x%x/0x%x/0x%x, " |
372 | "hwptr=0x%lx, hw_base=0x%lx, hw_intr=0x%lx\n", | 372 | "hwptr=0x%lx, hw_base=0x%lx, hw_intr=0x%lx\n", |
373 | name, pos, | 373 | name, (unsigned int)pos, |
374 | (int)runtime->period_size, | 374 | (unsigned int)runtime->period_size, |
375 | (int)runtime->buffer_size, | 375 | (unsigned int)runtime->buffer_size, |
376 | (long)old_hw_ptr, | 376 | (unsigned long)old_hw_ptr, |
377 | (long)runtime->hw_ptr_base, | 377 | (unsigned long)runtime->hw_ptr_base, |
378 | (long)runtime->hw_ptr_interrupt); | 378 | (unsigned long)runtime->hw_ptr_interrupt); |
379 | } | 379 | } |
380 | 380 | ||
381 | hw_base = runtime->hw_ptr_base; | 381 | hw_base = runtime->hw_ptr_base; |