kopia lustrzana https://gitlab.com/sane-project/backends
Condense warnings about half-baked .desc files
rodzic
778c21922d
commit
5d080dc17c
|
@ -3,6 +3,7 @@
|
|||
* po/*: standard gettext layout by Adi Roiban <adi at roiban dot ro>
|
||||
* doc/descriptions/fujitsu.desc, backend/fujitsu.conf.in:
|
||||
add S1500M entry by Harald Weis
|
||||
* tools/sane-desc.c: Condense warnings about half-baked .desc files
|
||||
|
||||
2010-02-27 Stéphane Voltz <stef.dev at free.fr>
|
||||
* backend/genesys.c backend/genesys_devices.c backend/genesys_gl646.c
|
||||
|
|
|
@ -827,6 +827,8 @@ read_files (void)
|
|||
{
|
||||
type_entry *current_type = current_backend->type;
|
||||
int no_usbids = 0;
|
||||
int no_interface = 0;
|
||||
int no_status = 0;
|
||||
|
||||
while (current_type)
|
||||
{
|
||||
|
@ -844,19 +846,21 @@ read_files (void)
|
|||
{
|
||||
if (current_model->status == status_unknown)
|
||||
{
|
||||
DBG_WARN
|
||||
DBG_INFO
|
||||
("Backend `%s': `%s' `%s' does not have a status\n",
|
||||
current_backend->name,
|
||||
current_mfg->name,
|
||||
current_model->name);
|
||||
no_status++;
|
||||
}
|
||||
if (!current_model->interface)
|
||||
{
|
||||
DBG_WARN
|
||||
DBG_INFO
|
||||
("Backend `%s': `%s' `%s' does not have an interface\n",
|
||||
current_backend->name,
|
||||
current_mfg->name,
|
||||
current_model->name);
|
||||
no_interface++;
|
||||
}
|
||||
else if (strstr (current_model->interface, "USB"))
|
||||
{
|
||||
|
@ -878,6 +882,16 @@ read_files (void)
|
|||
}
|
||||
current_type = current_type->next;
|
||||
}
|
||||
if (no_status)
|
||||
{
|
||||
DBG_WARN ("Backend `%s': %d devices without :status\n",
|
||||
current_backend->name, no_status);
|
||||
}
|
||||
if (no_interface)
|
||||
{
|
||||
DBG_WARN ("Backend `%s': %d devices without :interface\n",
|
||||
current_backend->name, no_interface);
|
||||
}
|
||||
if (no_usbids)
|
||||
{
|
||||
DBG_WARN ("Backend `%s': %d USB devices without :usbid\n",
|
||||
|
|
Ładowanie…
Reference in New Issue