调整日志
This commit is contained in:
parent
9e724b8395
commit
d0500c46f9
|
@ -2717,6 +2717,7 @@ int hg_scanner::device_io_control(unsigned long code, void* data, unsigned* len)
|
|||
{
|
||||
string str;
|
||||
int ret = get_device_log(str);
|
||||
VLOG_MINI_1(LOG_LEVEL_DEBUG_INFO, "str = %d\n", str.length());
|
||||
|
||||
*(char*)data = 0;
|
||||
if (ret != SCANNER_ERR_OK)
|
||||
|
@ -2724,7 +2725,6 @@ int hg_scanner::device_io_control(unsigned long code, void* data, unsigned* len)
|
|||
return ret;
|
||||
}
|
||||
strcpy((char*)data, str.c_str());
|
||||
printf("log path:%s\r\n",*((char*)data));
|
||||
return 0;
|
||||
}
|
||||
return SCANNER_ERR_DEVICE_NOT_SUPPORT;
|
||||
|
|
|
@ -1970,7 +1970,7 @@ int hg_scanner_239::get_device_log(string &logpath)
|
|||
f << str << endl;
|
||||
f.close();
|
||||
logpath = save_path;
|
||||
VLOG_MINI_3(LOG_LEVEL_DEBUG_INFO, "log path:%s ret:%s buffersize%s:\n", logpath.c_str(),hg_scanner_err_name(ret),buffersize);
|
||||
VLOG_MINI_3(LOG_LEVEL_DEBUG_INFO, "log path:%s ret:%s buffersize: %d\n", logpath.c_str(),hg_scanner_err_name(ret),buffersize);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue