From 8553ac6a9568b9cb7739707368a587e089535f43 Mon Sep 17 00:00:00 2001 From: fengjiayi Date: Tue, 3 Jul 2018 10:24:18 +0800 Subject: [PATCH] fix unittests --- paddle/fluid/platform/enforce.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/fluid/platform/enforce.h b/paddle/fluid/platform/enforce.h index 3790dd13525..566485cd3c3 100644 --- a/paddle/fluid/platform/enforce.h +++ b/paddle/fluid/platform/enforce.h @@ -73,7 +73,7 @@ struct EnforceNotMet : public std::exception { } catch (const std::exception& exp) { std::ostringstream sout; - sout << string::Sprintf("'%s' at [%s:%d]", exp.what(), f, l) << std::endl; + sout << string::Sprintf("%s at [%s:%d]", exp.what(), f, l) << std::endl; sout << "PaddlePaddle Call Stacks: " << std::endl; void* call_stack[TRACE_STACK_LIMIT]; @@ -105,7 +105,7 @@ struct EnforceNotMet : public std::exception { struct EOFException : public std::exception { std::string err_str_; EOFException(const char* err_msg, const char* f, int l) { - err_str_ = string::Sprintf("'%s' at [%s:%d]", err_msg, f, l); + err_str_ = string::Sprintf("%s at [%s:%d]", err_msg, f, l); } const char* what() const noexcept { return err_str_.c_str(); } -- GitLab