diff --git a/libavcodec/decode.c b/libavcodec/decode.c
index 9fdc7bb56548f0cbfec6f98cc4f56150881b478e..570799f6d7acb13e5197017a8f5eec4306fc8936 100644
--- a/libavcodec/decode.c
+++ b/libavcodec/decode.c
@@ -1115,7 +1115,7 @@ static int setup_hwaccel(AVCodecContext *avctx,
 
     if (!hwa) {
         av_log(avctx, AV_LOG_ERROR,
-               "Could not find an AVHWAccel for the pixel format: %s",
+               "Could not find an AVHWAccel for the pixel format: %s\n",
                name);
         return AVERROR(ENOENT);
     }