diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index a7a009f085b5e1e2e183e6168ffa4eaead59ce59..959a2414c7b42e69fb15494a3012306a8b4d469d 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -104,8 +104,9 @@ int avfilter_link(AVFilterContext *src, unsigned srcpad,
 int avfilter_insert_filter(AVFilterLink *link, AVFilterContext *filt,
                            unsigned in, unsigned out)
 {
-    av_log(link->dst, AV_LOG_INFO, "auto-inserting filter '%s'\n",
-            filt->name);
+    av_log(link->dst, AV_LOG_INFO, "auto-inserting filter '%s' "
+           "between the filter '%s' and the filter '%s'\n",
+           filt->name, link->src->name, link->dst->name);
 
     link->dst->inputs[link->dstpad] = NULL;
     if(avfilter_link(filt, out, link->dst, link->dstpad)) {