kopia lustrzana https://gitlab.com/sane-project/backends
Fix errors with debug format/parameter mismatches
rodzic
65df843b33
commit
ef7221f8b7
|
@ -539,7 +539,7 @@ get_info (DC240 * camera)
|
||||||
{
|
{
|
||||||
DBG (0,
|
DBG (0,
|
||||||
"Camera model (%d) is not DC-240 (5). "
|
"Camera model (%d) is not DC-240 (5). "
|
||||||
"Only the DC-240 is supported by this driver.\n");
|
"Only the DC-240 is supported by this driver.\n", camera->model);
|
||||||
}
|
}
|
||||||
|
|
||||||
camera->ver_major = buf[2];
|
camera->ver_major = buf[2];
|
||||||
|
@ -710,7 +710,7 @@ end_of_data (SANE_Int fd)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DBG (127, "end_of_data: waiting...\n", c);
|
DBG (127, "end_of_data: waiting...\n");
|
||||||
}
|
}
|
||||||
sleep (1); /* not too fast */
|
sleep (1); /* not too fast */
|
||||||
}
|
}
|
||||||
|
@ -1015,7 +1015,7 @@ sane_control_option (SANE_Handle handle, SANE_Int option,
|
||||||
(action ==
|
(action ==
|
||||||
SANE_ACTION_SET_VALUE ? "SET" : (action ==
|
SANE_ACTION_SET_VALUE ? "SET" : (action ==
|
||||||
SANE_ACTION_GET_VALUE ? "GET" :
|
SANE_ACTION_GET_VALUE ? "GET" :
|
||||||
"SETAUTO")), value, info);
|
"SETAUTO")), value, (void *)info);
|
||||||
|
|
||||||
if (handle != MAGIC || !is_open)
|
if (handle != MAGIC || !is_open)
|
||||||
return SANE_STATUS_INVAL; /* Unknown handle ... */
|
return SANE_STATUS_INVAL; /* Unknown handle ... */
|
||||||
|
@ -1797,7 +1797,7 @@ read_dir (SANE_String dir)
|
||||||
|
|
||||||
if (dir_insert (&dir_buf.entry[i]) != 0)
|
if (dir_insert (&dir_buf.entry[i]) != 0)
|
||||||
{
|
{
|
||||||
DBG (1, "%s: error: failed to insert dir entry\n");
|
DBG (1, "%s: error: failed to insert dir entry\n", f);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
retval++;
|
retval++;
|
||||||
|
|
Ładowanie…
Reference in New Issue