bin/chroot-maint: Add missing format argument to diagnostic.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 8 Jun 2020 18:55:58 +0000 (19:55 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 8 Jun 2020 18:55:58 +0000 (19:55 +0100)
Apparently I've never tripped that one before.

bin/chroot-maint

index 21e5c21..ba51ec5 100755 (executable)
@@ -2051,8 +2051,9 @@ class ChrootJob (BaseJob):
         run_root(["mv", new, real])
       for path in have_link.iterkeys():
         if path in want_link: continue
-        progress("remove obsolete link `%s' -> `%s'" % path)
         real = root + path
+        progress("remove obsolete link `%s' -> `%s'" %
+                 (path, OS.readlink(real)))
         run_root(["rm", "-f", real])
 
       ## Remove diversions from paths which don't need them any more.  Here