summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuqian Huang <huangfq.daxian@gmail.com>2019-04-26 11:16:24 +0800
committerTakashi Iwai <tiwai@suse.de>2019-04-28 08:25:18 +0200
commit4ab1ae3453c92940dc752e2c98aa494d3eaedc09 (patch)
tree3c6c1669f1ce81a8eb9662923c04912a923da123
parent607ca3bd220f4022e6f5356026b19dafc363863a (diff)
downloadlinux-riscv-4ab1ae3453c92940dc752e2c98aa494d3eaedc09.tar.gz
linux-riscv-4ab1ae3453c92940dc752e2c98aa494d3eaedc09.tar.bz2
linux-riscv-4ab1ae3453c92940dc752e2c98aa494d3eaedc09.zip
ALSA: gus: fix misuse of %x
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> Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/isa/gus/gus_mem.c2
1 files changed, 1 insertions, 1 deletions
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])