devices/loopback: remove extra "'" from print

There is an extra `'` character in the print messages that shows
which file we are using.
This commit is contained in:
Christian Kellner 2021-10-11 20:37:36 +00:00
parent 221381b2de
commit bf5a7cdbb0

View file

@ -88,7 +88,7 @@ class LoopbackService(devices.DeviceService):
path = os.path.join(tree, filename.lstrip("/"))
self.fd = os.open(path, os.O_RDWR | os.O_CLOEXEC)
print(f"file '{filename}'' opened as {self.fd}")
print(f"file '{filename}' opened as {self.fd}")
try:
self.lo = self.make_loop(self.fd, start, size, lock)
except Exception as error: # pylint: disable: broad-except