Commit 6608402c authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

zdtm: Don't modify global @errno in test_msg

This is logging routine, lets it not affect the global @errno.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Acked-by: 's avatarAndrew Vagin <avagin@parallels.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent f76a57c2
......@@ -39,6 +39,7 @@ void test_msg(const char *format, ...)
va_list arg;
int off = 0;
char buf[PAGE_SIZE];
int __errno = errno;
struct timeval tv;
struct tm *tm;
......@@ -57,4 +58,5 @@ void test_msg(const char *format, ...)
va_end(arg);
fprintf(stderr, "%s", buf);
errno = __errno;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment