Skip to content
Commit d0335779 authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Pavel Emelyanov
Browse files

test_msg(): avoid recursion



In (highly unlikely) case localtime() failed, test_msg() calls
pr_perror() which is a wrapper around test_msg() so we're
calling ourselves, which can lead to infinite recursion if
localtime() keeps failing. Use fprintf() here to avoid this.

Signed-off-by: default avatarKir Kolyshkin <kir@openvz.org>
Acked-by: default avatarAndrew Vagin <avagin@gmail.com>
Signed-off-by: default avatarPavel Emelyanov <xemul@parallels.com>
parent ae6294f4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment