Skip to content

Commit

Permalink
audio/audio.c: remove trailing newline in error_setg
Browse files Browse the repository at this point in the history
error_setg() appends newline to the formatted message.
Fixes: cb94ff5 ("audio: propagate Error * out of audio_init")

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
  • Loading branch information
Michael Tokarev committed Jan 5, 2024
1 parent 4ad87cd commit 09a3615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion audio/audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 09a3615

Please sign in to comment.