调整sane_start日志位置

This commit is contained in:
gb 2023-12-07 15:06:48 +08:00
parent bfe3819be3
commit 43ef322c20
1 changed files with 2 additions and 2 deletions

View File

@ -1688,6 +1688,8 @@ SANE_Status hg_sane_middleware::start(SANE_Handle h, void* async_event)
scanner_handle hs = find_openning_device(h);
scanner_err err = SCANNER_ERR_INVALID_PARAMETER;
LOG_INFO(LOG_LEVEL_ALL, "sane_start ...\n");
if(hs)
err = hg_scanner_start(hs, async_event, -1);
@ -2589,8 +2591,6 @@ extern "C" { // avoid compiler exporting name in C++ style !!!
}
SANE_Status inner_sane_start(SANE_Handle handle)
{
LOG_INFO(LOG_LEVEL_ALL, "sane_start\n");
return hg_sane_middleware::instance()->start(handle, NULL);
}
SANE_Status inner_sane_read(SANE_Handle handle, SANE_Byte* data, SANE_Int max_length, SANE_Int* length)