From ad4366681e6b7632ab381b5aab3d163db61f7a72 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 19 Mar 2017 21:58:42 +0530 Subject: [PATCH] Output failure to read node size from sysfs in debug mode --- src/calibre/devices/usbms/device.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/calibre/devices/usbms/device.py b/src/calibre/devices/usbms/device.py index 41f49cda17..52339ce2a3 100644 --- a/src/calibre/devices/usbms/device.py +++ b/src/calibre/devices/usbms/device.py @@ -545,6 +545,9 @@ class Device(DeviceConfig, DevicePlugin): ok[node] = False except: ok[node] = False + if DEBUG and not ok[node]: + print '\nIgnoring the node: %s as could not read size from: %s' % (node, sz) + devnodes.append(node) devnodes += list(repeat(None, 3))