From 33893ece1df23f9f3af2f591fd0cdd65b9c129f3 Mon Sep 17 00:00:00 2001
From: Kevin O'Connor <kevin@koconnor.net>
Date: Fri, 26 Jan 2018 22:29:27 -0500
Subject: [PATCH] logextract: Fix error in config file name print

Fix typo causing an error during the printing of the config file name.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
---
 scripts/logextract.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/logextract.py b/scripts/logextract.py
index d76a2c029..00d60c938 100755
--- a/scripts/logextract.py
+++ b/scripts/logextract.py
@@ -94,7 +94,7 @@ class GatherShutdown:
             configs_by_id = {c.config_num: c for c in configs.values()}
             config = configs_by_id[max(configs_by_id.keys())]
             config.add_comment(format_comment(line_num, recent_lines[-1][1]))
-            self.comments.append("# config %s" % (self.config.filename,))
+            self.comments.append("# config %s" % (config.filename,))
         self.stats_stream = []
         self.gcode_stream = []
         self.mcus = {}