ovs.stream: Use %d in place of %ld since the two are equivalent in Python.
authorBen Pfaff <blp@nicira.com>
Tue, 23 Aug 2011 17:47:53 +0000 (10:47 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 24 Aug 2011 19:06:53 +0000 (12:06 -0700)
Reported-by: Reid Price <reid@nicira.com>
python/ovs/stream.py

index 16e383a0c7dc16e38103cdff0542b2dbf4c74a44..20cd7fe2487827ccbdc3cbf4c75ec007611dad7b 100644 (file)
@@ -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");
 # you may not use this file except in compliance with the License.
@@ -75,8 +75,8 @@ class Stream(object):
             return errno.EAFNOSUPPORT, None
 
         Stream.n_unix_sockets += 1
-        bind_path = "/tmp/stream-unix.%ld.%d" % (os.getpid(),
-                                                 Stream.n_unix_sockets)
+        bind_path = "/tmp/stream-unix.%d.%d" % (os.getpid(),
+                                                Stream.n_unix_sockets)
         connect_path = name[5:]
         error, sock = ovs.socket_util.make_unix_socket(socket.SOCK_STREAM,
                                                        True, bind_path,