From: YAMAMOTO Takashi Date: Wed, 27 Nov 2013 05:25:24 +0000 (+0900) Subject: util: fix a printf format X-Git-Tag: sliver-openvswitch-2.0.90-1~1^2~38 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;ds=sidebyside;h=5865a8af9215d4b40ba298784b4607e70c0d7a7d;p=sliver-openvswitch.git 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 Signed-off-by: Jesse Gross --- 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