Condense warnings about half-baked .desc files

merge-requests/1/head
m. allan noah 2010-02-27 21:09:45 -05:00
rodzic 778c21922d
commit 5d080dc17c
2 zmienionych plików z 17 dodań i 2 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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",