X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Ftest-vconn.c;fp=tests%2Ftest-vconn.c;h=31451a27e43dcc920011d08b3e5f7f6fac989608;hb=bbd1c2c5f5785bd58943afc81fb059b473ab0027;hp=3398c4aa3d0f2d1aede5dd3bc193473d48e8c0e7;hpb=024c78b852ace6319dfd4b46cafc1b9fe4180d77;p=openvswitch diff --git a/tests/test-vconn.c b/tests/test-vconn.c index 3398c4aa..31451a27 100644 --- a/tests/test-vconn.c +++ b/tests/test-vconn.c @@ -56,8 +56,9 @@ static void check_errno(int a, int b, const char *as, const char *file, int line) { if (a != b) { + char *str_b = strdup(strerror(abs(b))); ovs_fatal(0, "%s:%d: %s is %d (%s) but should be %d (%s)", - file, line, as, a, strerror(abs(a)), b, strerror(abs(b))); + file, line, as, a, strerror(abs(a)), b, str_b); } }