Skip to content

Commit

Permalink
Print uniq instead of phys, if available
Browse files Browse the repository at this point in the history
  • Loading branch information
quaxalber committed Dec 8, 2023
1 parent e40753f commit b4db32e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evdev/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def __eq__(self, other):

def __str__(self):
msg = 'device {}, name "{}", phys "{}"'
return msg.format(self.path, self.name, self.phys)
return msg.format(self.path, self.name, self.uniq if self.uniq else self.phys)

def __repr__(self):
msg = (self.__class__.__name__, self.path)
Expand Down

0 comments on commit b4db32e

Please sign in to comment.