Skip to content

Commit

Permalink
ovs-check-dead-ifs: python3 print format
Browse files Browse the repository at this point in the history
The print call changed in python3, so update it.

Acked-by: William Tu <[email protected]>
Signed-off-by: Aaron Conole <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
apconole authored and blp committed Sep 25, 2019
1 parent 594570e commit c864b82
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utilities/ovs-check-dead-ifs.in
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ for ifname in os.listdir("/sys/class/net"):
except IOError:
pass
except ValueError:
print "%s: unexpected format\n" % fn
print("%s: unexpected format\n" % fn)

# Get inodes for all packet sockets whose ifindexes don't exist.
invalid_inodes = set()
Expand Down Expand Up @@ -95,8 +95,8 @@ for pid in os.listdir("/proc"):
bad_pids.add(pid)

if bad_pids:
print """
print("""
The following processes are listening for packets to arrive on network devices
that no longer exist. You may want to restart them."""
that no longer exist. You may want to restart them.""")
sys.stdout.flush()
os.execvp("ps", ["ps"] + ["%s" % pid for pid in bad_pids])

0 comments on commit c864b82

Please sign in to comment.