summaryrefslogtreecommitdiff
path: root/lib/util.c
diff options
context:
space:
mode:
authorYAMAMOTO Takashi <yamamoto@valinux.co.jp>2013-11-27 14:25:24 +0900
committerJesse Gross <jesse@nicira.com>2013-11-26 21:22:59 -0800
commit5865a8af9215d4b40ba298784b4607e70c0d7a7d (patch)
tree399b235634fbf4f97bf7438ddd8805d775ac83e4 /lib/util.c
parent937e9b806ac491d8bd3f446d187632cb70416dc2 (diff)
downloadopenvswitch-5865a8af9215d4b40ba298784b4607e70c0d7a7d.tar.gz
util: fix a printf format
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>
Diffstat (limited to 'lib/util.c')
-rw-r--r--lib/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.c b/lib/util.c
index faa2cabbe..53c38493b 100644
--- a/lib/util.c
+++ b/lib/util.c
@@ -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