mirror of
https://github.com/openvswitch/ovs
synced 2025-10-25 15:07:05 +00:00
ovs.stream: Use %d in place of %ld since the two are equivalent in Python.
Reported-by: Reid Price <reid@nicira.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# Copyright (c) 2010 Nicira Networks
|
# Copyright (c) 2010, 2011 Nicira Networks
|
||||||
#
|
#
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# you may not use this file except in compliance with the License.
|
# you may not use this file except in compliance with the License.
|
||||||
@@ -75,8 +75,8 @@ class Stream(object):
|
|||||||
return errno.EAFNOSUPPORT, None
|
return errno.EAFNOSUPPORT, None
|
||||||
|
|
||||||
Stream.n_unix_sockets += 1
|
Stream.n_unix_sockets += 1
|
||||||
bind_path = "/tmp/stream-unix.%ld.%d" % (os.getpid(),
|
bind_path = "/tmp/stream-unix.%d.%d" % (os.getpid(),
|
||||||
Stream.n_unix_sockets)
|
Stream.n_unix_sockets)
|
||||||
connect_path = name[5:]
|
connect_path = name[5:]
|
||||||
error, sock = ovs.socket_util.make_unix_socket(socket.SOCK_STREAM,
|
error, sock = ovs.socket_util.make_unix_socket(socket.SOCK_STREAM,
|
||||||
True, bind_path,
|
True, bind_path,
|
||||||
|
|||||||
Reference in New Issue
Block a user