* [PATCH v3] sound: isa: gus: fix misuse of %x
@ 2019-04-26 3:16 Fuqian Huang
2019-04-28 6:26 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Fuqian Huang @ 2019-04-26 3:16 UTC (permalink / raw)
Cc: Fuqian Huang, Jaroslav Kysela, Takashi Iwai, alsa-devel, linux-kernel
Pointers should be printed with %p or %px rather than
cast to long type and printed with %lx.
Drop the address printing.
Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com>
---
sound/isa/gus/gus_mem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/isa/gus/gus_mem.c b/sound/isa/gus/gus_mem.c
index 4ac76f46dd76..d708ae1525e4 100644
--- a/sound/isa/gus/gus_mem.c
+++ b/sound/isa/gus/gus_mem.c
@@ -306,7 +306,7 @@ static void snd_gf1_mem_info_read(struct snd_info_entry *entry,
used = 0;
for (block = alloc->first, i = 0; block; block = block->next, i++) {
used += block->size;
- snd_iprintf(buffer, "Block %i at 0x%lx onboard 0x%x size %i (0x%x):\n", i, (long) block, block->ptr, block->size, block->size);
+ snd_iprintf(buffer, "Block %i onboard 0x%x size %i (0x%x):\n", i, block->ptr, block->size, block->size);
if (block->share ||
block->share_id[0] || block->share_id[1] ||
block->share_id[2] || block->share_id[3])
--
2.11.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v3] sound: isa: gus: fix misuse of %x
2019-04-26 3:16 [PATCH v3] sound: isa: gus: fix misuse of %x Fuqian Huang
@ 2019-04-28 6:26 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2019-04-28 6:26 UTC (permalink / raw)
To: Fuqian Huang; +Cc: alsa-devel, Jaroslav Kysela, linux-kernel
On Fri, 26 Apr 2019 05:16:24 +0200,
Fuqian Huang wrote:
>
> Pointers should be printed with %p or %px rather than
> cast to long type and printed with %lx.
> Drop the address printing.
>
> Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com>
Applied now. Thanks.
Takashi
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-04-28 6:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-26 3:16 [PATCH v3] sound: isa: gus: fix misuse of %x Fuqian Huang
2019-04-28 6:26 ` Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®