projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1cbfd5
)
audio: Replace non-portable asprintf in debug code by g_strdup_printf
author
Stefan Weil
<sw@weilnetz.de>
Wed, 16 Jan 2013 17:17:33 +0000
(18:17 +0100)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Wed, 16 Jan 2013 18:03:26 +0000
(12:03 -0600)
sw->name already uses the correct g_free to free the allocated memory.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
audio/audio.c
patch
|
blob
|
history
diff --git
a/audio/audio.c
b/audio/audio.c
index 1510b598a6269eb996569ae29b8817610093283d..02bb8861f89ae4e7ba969e4a4b478f8cad28a99c 100644
(file)
--- a/
audio/audio.c
+++ b/
audio/audio.c
@@
-828,8
+828,9
@@
static int audio_attach_capture (HWVoiceOut *hw)
QLIST_INSERT_HEAD (&hw_cap->sw_head, sw, entries);
QLIST_INSERT_HEAD (&hw->cap_head, sc, entries);
#ifdef DEBUG_CAPTURE
- asprintf (&sw->name, "for %p %d,%d,%d",
- hw, sw->info.freq, sw->info.bits, sw->info.nchannels);
+ sw->name = g_strdup_printf ("for %p %d,%d,%d",
+ hw, sw->info.freq, sw->info.bits,
+ sw->info.nchannels);
dolog ("Added %s active = %d\n", sw->name, sw->active);
#endif
if (sw->active) {