summaryrefslogtreecommitdiff
diff options
authorJeff Lane <jeffrey.lane@canonical.com>2015-07-17 11:25:34 -0400
committerJeff Lane <jeffrey.lane@canonical.com>2015-07-17 11:25:34 -0400
commit752018a699f06357228966b4101f6b9d4ac222ce (patch)
tree21a380e7168936706b902d0ebc2928ce636723df
parentaba456242f6b053365d461da03ee7c3a525dc683 (diff)
refinement to error output for sysfs_cpu()
-rwxr-xr-xbin/cpu_topology3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/cpu_topology b/bin/cpu_topology
index 4cb2249..ba27b6a 100755
--- a/bin/cpu_topology
+++ b/bin/cpu_topology
@@ -47,7 +47,8 @@ class sysfs_cpu():
try:
syscpu_fh = open(os.path.join(self.path, i), 'r')
except FileNotFoundError:
- print("/sys/devices seems to be missing, unable to continue")
+ print("ERROR: %s seems to be missing, unable to continue" %
+ self.path)
sys.exit(1)
else:
self.syscpu[i] = syscpu_fh.readline().strip()