Skip to content

Commit b68d7f3

Browse files
committed
Remove truncating from device name printing.
Because there is a newline between device name and HW address in the new version of ethtool/pifconfig, truncating and left alignment doesn't make sense.
1 parent 9b9ae43 commit b68d7f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/pifconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def show_config(device):
6363
ipaddr = ethtool.get_ipaddr(device)
6464
netmask = ethtool.get_netmask(device)
6565
flags = ethtool.get_flags(device)
66-
print('%-9.9s' % device)
66+
print('%s' % device)
6767
if not (flags & ethtool.IFF_LOOPBACK):
6868
print('\tHWaddr %s' % ethtool.get_hwaddr(device))
6969
print('\tinet addr:%s' % ipaddr)

0 commit comments

Comments
 (0)