Skip to content

Commit

Permalink
Fix txt log can not set default path issue (#5827)
Browse files Browse the repository at this point in the history
If user does not set path, log will save in default path

Co-authored-by: chuanli1 <chuan1.liu@intel.com>
  • Loading branch information
gfxVPLsdm and chuanli1 authored Sep 22, 2023
1 parent 054d1be commit ec1471c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion _studio/shared/mfx_trace/src/mfx_trace_textlog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ mfxTraceU32 MFXTraceTextLog_Init()

sts = MFXTraceTextLog_Close();
if (!sts) sts = MFXTraceTextLog_GetRegistryParams();
std::string StrVplLogPath = VplLogPath;
std::string StrPid = "/mfxlib_Pid";
std::string filename_path = VplLogPath + StrPid + std::to_string(getpid()) + "_Tid" + std::to_string(pthread_self()) + ".log";
strcpy(g_mfxTracePrintfFileName,filename_path.c_str());
Expand Down

0 comments on commit ec1471c

Please sign in to comment.