util: fix a printf format
authorYAMAMOTO Takashi <yamamoto@valinux.co.jp>
Wed, 27 Nov 2013 05:25:24 +0000 (14:25 +0900)
committerJesse Gross <jesse@nicira.com>
Wed, 27 Nov 2013 05:22:59 +0000 (21:22 -0800)
revert a mistake in commit 34582733.
("Avoid printf type modifiers not supported by MSVC C runtime library.")

Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: Jesse Gross <jesse@nicira.com>
lib/util.c

index faa2cab..53c3849 100644 (file)
@@ -346,7 +346,7 @@ ovs_strerror(int error)
          * is too short).  We don't check the actual failure reason because
          * POSIX requires strerror_r() to return the error but old glibc
          * (before 2.13) returns -1 and sets errno. */
-        snprintf(buffer, BUFSIZE, "Unknown error %"PRIuSIZE, error);
+        snprintf(buffer, BUFSIZE, "Unknown error %d", error);
     }
 #endif