diff options
author | Michael Tokarev <mjt@tls.msk.ru> | 2024-01-03 14:18:00 +0300 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2024-01-05 22:28:54 +0300 |
commit | 09a36158c283f7448d1b00fdbb6634f05d27f922 (patch) | |
tree | a322b8c9c49635e502ccd9f94f70dae8920fb85d /audio | |
parent | 4ad87cd4b2254197b7ac12e3da824854e6a90f8f (diff) |
audio/audio.c: remove trailing newline in error_setg
error_setg() appends newline to the formatted message.
Fixes: cb94ff5f80c5 ("audio: propagate Error * out of audio_init")
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'audio')
-rw-r--r-- | audio/audio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/audio.c b/audio/audio.c index a1097bb016..af0ae33fed 100644 --- a/audio/audio.c +++ b/audio/audio.c @@ -1744,7 +1744,7 @@ static AudioState *audio_init(Audiodev *dev, Error **errp) if (driver) { done = !audio_driver_init(s, driver, dev, errp); } else { - error_setg(errp, "Unknown audio driver `%s'\n", drvname); + error_setg(errp, "Unknown audio driver `%s'", drvname); } if (!done) { goto out; |