Lines Matching refs:printf
313 printf ("Usage: %s [-s dir] [-m mode] [-d level] [-h] [-V]\n",
315 printf (" -s|--search-dir dir "
319 printf (" -m|--mode mode "
322 printf (" -t|--title \"title\" The title used for HTML pages\n");
323 printf (" -i|--intro \"intro\" A short description of the "
325 printf (" -d|--debug-level level Specify debug level (0-3)\n");
326 printf (" -h|--help Print help message\n");
327 printf (" -V|--version Print version information\n");
328 printf ("Report bugs to <henning@meier-geinitz.de>\n");
334 printf ("sane-desc %s (%s)\n", SANE_DESC_VERSION, PACKAGE_STRING);
335 printf ("Copyright (C) 2002-2006 Henning Meier-Geinitz "
1838 printf ("backend `%s'\n", be->name);
1840 printf ("backend *none*\n");
1843 printf (" version `%s'\n", be->version);
1845 printf (" version *none*\n");
1848 printf (" NEW!\n");
1851 printf (" manpage `%s'\n", be->manpage);
1853 printf (" manpage *none*\n");
1858 printf (" url `%s'\n", url->name);
1862 printf (" url *none*\n");
1865 printf (" comment `%s'\n", be->comment);
1867 printf (" comment *none*\n");
1875 printf (" type scanner\n");
1878 printf (" type stillcam\n");
1881 printf (" type vidcam\n");
1884 printf (" type meta\n");
1887 printf (" type api\n");
1890 printf (" type *unknown*\n");
1896 printf (" desc `%s'\n", type->desc->desc);
1900 printf (" url `%s'\n", url->name);
1904 printf (" url *none*\n");
1907 printf (" comment `%s'\n", type->desc->comment);
1909 printf (" comment *none*\n");
1912 printf (" desc *none*\n");
1922 printf (" mfg `%s'\n", mfg->name);
1926 printf (" url `%s'\n", url->name);
1930 printf (" url *none*\n");
1933 printf (" comment `%s'\n", mfg->comment);
1935 printf (" comment *none*\n");
1941 printf (" model `%s'\n", model->name);
1943 printf (" interface `%s'\n", model->interface);
1945 printf (" interface *none*\n");
1948 printf (" usb-vendor-id `%s'\n", model->usb_vendor_id);
1950 printf (" usb-vendor-id *none*\n");
1953 printf (" usb-product-id `%s'\n", model->usb_product_id);
1955 printf (" usb-product-id *none*\n");
1960 printf (" status minimal\n");
1963 printf (" status basic\n");
1966 printf (" status good\n");
1969 printf (" status complete\n");
1972 printf (" status untested\n");
1975 printf (" status unsupported\n");
1978 printf (" status *unknown*\n");
1985 printf (" url `%s'\n", url->name);
1989 printf (" url *none*\n");
1992 printf (" comment `%s'\n", model->comment);
1994 printf (" comment *none*\n");
1999 printf (" model *none*\n");
2005 printf (" mfg *none*\n");
2009 printf (" type *none*\n");
2064 printf ("<backends>\n");
2071 printf ("<backend name=\"%s\">\n", clean_string (be->name));
2073 printf ("<backend name=\"*none\">\n");
2076 printf ("<version>%s</version>\n", clean_string (be->version));
2078 printf ("<version>*none*</version>\n");
2081 printf ("<new state=\"yes\"/>\n");
2083 printf ("<new state=\"no\"/>\n");
2087 printf (" <manpage>%s</manpage>\n", clean_string (be->manpage));
2089 printf (" <manpage>*none*</manpage>\n");
2094 printf (" <url>%s</url>\n", clean_string (url->name));
2098 printf (" <url>*none*</url>\n");
2101 printf (" <comment>%s</comment>\n", clean_string (be->comment));
2103 printf (" <comment>*none*</comment>\n");
2112 printf (" <type def=\"scanner\">\n");
2115 printf (" <type def=\"stillcam\">\n");
2118 printf (" <type def=\"vidcam\">\n");
2121 printf (" <type def=\"meta\">\n");
2124 printf (" <type def=\"api\">\n");
2127 printf (" <type def=\"*unknown*\">\n");
2133 printf (" <desc>%s</desc>\n",
2138 printf (" <url>%s</url>\n", clean_string (url->name));
2142 printf (" <url>*none*</url>\n");
2145 printf (" <comment>%s</comment>\n",
2148 printf (" <comment>*none*</comment>\n");
2151 printf (" <desc>*none*</desc>\n");
2161 printf (" <mfg name=\"%s\">\n", clean_string (mfg->name));
2165 printf (" <url>`%s'</url>\n",
2170 printf (" <url>*none*</url>\n");
2173 printf (" <comment>%s</comment>\n",
2176 printf (" <comment>*none*</comment>\n");
2182 printf (" <model name=\"%s\">\n",
2185 printf (" <interface>%s</interface>\n",
2188 printf (" <interface>*none*</interface>\n");
2191 printf (" <usbvendorid>%s</usbvendorid>\n",
2194 printf (" <usbvendorid>*none*</usbvendorid>\n");
2196 printf (" <usbproductid>%s</usbproductid>\n",
2199 printf (" <usbproductid>*none*</usbproductid>\n");
2204 printf (" <status>minimal</status>\n");
2207 printf (" <status>basic</status>\n");
2210 printf (" <status>good</status>\n");
2213 printf (" <status>complete</status>\n");
2216 printf (" <status>untested</status>\n");
2219 printf (" <status>unsupported</status>\n");
2222 printf (" <status>*unknown*</status>\n");
2229 printf (" <url>%s</url>\n",
2234 printf (" <url>*none*</url>\n");
2237 printf (" <comment>%s</comment>\n",
2240 printf (" <comment>*none*</comment>\n");
2243 printf (" </model>\n");
2246 printf (" <model name=\"*none*\" />\n");
2248 printf (" </mfg>\n");
2253 printf (" <mfg>*none*</mfg>\n");
2255 printf (" </type>\n");
2258 printf (" <type>*none*</type>\n");
2259 printf ("</backend>\n");
2263 printf ("</backends>\n");
2321 printf ("<td align=center><font color=%s>%d</font></td>\n",
2332 printf ("<tr>\n");
2333 printf("<td align=center><a href=\"#%s\">%s</a></td>\n",
2352 printf ("<td align=center colspan=7>n/a</td>\n");
2354 printf ("</tr>\n");
2364 printf ("<h2>Summary</h2>\n");
2365 printf ("<table border=1>\n");
2366 printf ("<tr bgcolor=E0E0FF>\n");
2367 printf ("<th align=center rowspan=3>Device type</th>\n");
2368 printf ("<th align=center colspan=8>Number of devices</th>\n");
2369 printf ("</tr>\n");
2370 printf ("<tr bgcolor=E0E0FF>\n");
2371 printf ("<th align=center rowspan=2>Total</th>\n");
2372 printf ("<th align=center colspan=5>Supported</th>\n");
2373 printf ("<th align=center rowspan=2><font color=" COLOR_UNTESTED
2375 printf ("<th align=center rowspan=2><font color=" COLOR_UNSUPPORTED
2377 printf ("</tr>\n");
2378 printf ("<tr bgcolor=E0E0FF>\n");
2379 printf ("<th align=center>Sum</th>\n");
2381 printf ("<th align=center><font color=%s>%s</font></th>\n",
2383 printf ("</tr>\n");
2386 printf ("</table>\n");
2449 printf ("<p><b>Backends</b>:\n");
2464 printf (",\n");
2466 printf ("<a href=\"#%s\">%s</a>",
2473 printf ("(none)\n");
2475 printf ("</p>\n");
2489 printf ("<h3><a name=\"%s\">Backend: %s\n",
2495 printf ("(");
2498 printf ("%s", be->version);
2500 printf (", <font color=" COLOR_NEW ">NEW!</font>");
2503 printf ("<font color=" COLOR_NEW ">NEW!</font>");
2504 printf (")\n");
2506 printf ("</a></h3>\n");
2508 printf ("<p>\n");
2513 printf ("<b>Link(s):</b>\n");
2517 printf (", ");
2518 printf ("<a href=\"%s\">%s</a>", url->name, url->name);
2521 printf ("<br>\n");
2524 printf ("<b>Manual page:</b> <a href=\"" MAN_PAGE_LINK
2528 printf ("<b>Comment:</b> %s<br>\n", be->comment);
2536 printf ("<b>Description:</b> "
2540 printf ("<b>Description:</b> %s<br>\n",
2545 printf ("<b>Comment:</b> %s<br>\n", type->desc->comment);
2546 printf ("</p>\n");
2550 printf ("</p>\n");
2558 printf ("<table border=1>\n");
2560 printf ("<tr bgcolor=E0E0FF>\n");
2561 printf ("<th align=center>Manufacturer</th>\n");
2562 printf ("<th align=center>Model</th>\n");
2563 printf ("<th align=center>Interface</th>\n");
2564 printf ("<th align=center>USB id</th>\n");
2565 printf ("<th align=center>Status</th>\n");
2566 printf ("<th align=center>Comment</th>\n");
2567 printf ("</tr>\n");
2583 printf ("<tr>\n");
2584 printf ("<td align=center rowspan=%d>\n", num_models);
2586 printf ("<a href=\"%s\">%s</a>\n", mfg->url->name,
2589 printf ("%s\n", mfg->name);
2596 printf ("<tr>\n");
2599 printf
2603 printf ("<td align=center>%s</td>\n",
2607 printf ("<td align=center>%s</td>\n",
2610 printf ("<td align=center>?</td>\n");
2613 printf ("<td align=center>%s/%s</td>\n",
2616 printf ("<td align=center> </td>\n");
2618 printf ("<td align=center><font color=%s>%s</font></td>\n",
2622 printf ("<td>%s</td>\n", model->comment);
2624 printf ("<td> </td>\n");
2627 printf ("</tr>\n");
2632 printf ("</table>\n");
2638 /* printf ("</table>\n"); */
2651 printf ("<p><b>Manufacturers</b>:\n");
2655 printf (",\n");
2656 printf ("<a href=\"#%s\">%s</a>",
2663 printf ("(none)\n");
2664 printf ("</p>\n");
2669 printf ("<h3><a name=\"%s\">Manufacturer: %s</a></h3>\n",
2672 printf ("<p>\n");
2676 printf ("<b>Link(s):</b>\n");
2680 printf (", ");
2681 printf ("<a href=\"%s\">%s</a>", url->name, url->name);
2684 printf ("<br>\n");
2687 printf ("<b>Comment:</b> %s<br>\n", mfg_record->comment);
2688 printf ("</p>\n");
2694 printf ("<table border=1>\n");
2695 printf ("<tr bgcolor=E0E0FF>\n");
2697 printf ("<th align=center>Model</th>\n");
2698 printf ("<th align=center>Interface</th>\n");
2699 printf ("<th align=center>USB id</th>\n");
2700 printf ("<th align=center>Status</th>\n");
2701 printf ("<th align=center>Comment</th>\n");
2702 printf ("<th align=center>Backend</th>\n");
2703 printf ("<th align=center>Manpage</th>\n");
2704 printf ("</tr>\n");
2711 printf ("<tr><td align=center><a "
2715 printf ("<tr><td align=center>%s</td>\n", model_record->name);
2718 printf ("<td align=center>%s</td>\n", model_record->interface);
2720 printf ("<td align=center>?</td>\n");
2723 printf ("<td align=center>%s/%s</td>\n",
2726 printf ("<td align=center> </td>\n");
2728 printf ("<td align=center><font color=%s>%s</font></td>\n",
2732 printf ("<td>%s</td>\n", model_record->comment);
2734 printf ("<td> </td>\n");
2736 printf ("<td align=center>\n");
2738 printf ("<a href=\"%s\">%s</a>\n",
2741 printf ("%s", model_record->be->name);
2745 printf ("<br>(");
2748 printf ("%s", model_record->be->version);
2750 printf (", <font color=" COLOR_NEW ">NEW!</font>");
2753 printf ("<font color=" COLOR_NEW ">NEW!</font>");
2754 printf (")\n");
2757 printf ("</td>\n");
2759 printf ("<td align=center><a href=\""
2763 printf ("<td align=center>?</td>\n");
2765 printf ("</tr>\n");
2768 printf ("</table>\n");
2777 printf
2782 printf ("<title>%s</title>\n", title);
2783 printf
2788 printf ("<h1>%s</h1>\n", title);
2789 printf ("</div>\n" "<hr>\n");
2790 printf ("%s\n", intro);
2791 printf
2796 printf
2809 printf
2815 printf ("This page was created by sane-desc %s from %s\n",
2817 printf ("</font>\n");
2818 printf ("</body> </html>\n");
2826 printf
2841 printf
2851 printf
2859 printf
2868 printf
2876 printf
2883 printf
2891 printf
2899 printf
2906 printf
2913 printf
2927 printf
2947 printf ("<h2><a name=\"SCANNERS\">Scanners</a></h2>\n");
2950 printf ("<h2><a name=\"STILL\">Still Cameras</a></h2>\n");
2953 printf ("<h2><a name=\"VIDEO\">Video Cameras</a></h2>\n");
2956 printf ("<h2><a name=\"API\">APIs</a></h2>\n");
2959 printf ("<h2><a name=\"META\">Meta Backends</a></h2>\n");
2962 printf ("<h3><a name=\"legend\">Legend:</a></h3>\n" "<blockquote><dl>\n");
2975 printf ("</dl></blockquote>\n");
2995 printf ("<h2><a name=\"SCANNERS\">Scanners</a></h2>\n");
2998 printf ("<h2><a name=\"STILL\">Still Cameras</a></h2>\n");
3001 printf ("<h2><a name=\"VIDEO\">Video Cameras</a></h2>\n");
3004 printf ("<h2><a name=\"API\">APIs</a></h2>\n");
3007 printf ("<h2><a name=\"META\">Meta Backends</a></h2>\n");
3010 printf
3024 printf ("</dl>\n" "</blockquote>\n");
3038 printf (" Total: %4d\n",
3045 printf (" Supported: %4d (complete: %d, good: %d, basic: %d, "
3050 printf (" Untested: %4d\n", num[status_untested]);
3051 printf (" Unsupported: %4d\n", num[status_unsupported]);
3058 printf ("Number of known devices:\n");
3059 printf ("Scanners:\n");
3061 printf ("Still cameras:\n");
3063 printf ("Video cameras:\n");
3065 printf ("Meta backends:\n");
3067 printf ("API backends:\n");
3320 printf ("# This file was generated from description files (*.desc)\n"
3330 printf
3343 printf
3352 printf
3376 printf ("# ");
3380 printf (" | ");
3381 printf ("%s", name->name);
3384 printf ("\n");
3385 printf ("libusbscanner 0x0003 %s %s ", usbid->usb_vendor_id,
3387 printf ("0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000\n");
3397 printf
3404 printf
3416 printf
3439 printf ("# ");
3443 printf (" | ");
3444 printf ("%s", name->name);
3447 printf ("\n");
3448 printf ("%s\t%s\t%s:%s\t%s\n", usbid->usb_vendor_id,
3459 printf
3468 printf
3476 printf
3497 printf("ACTION==\"remove\", GOTO=\"libsane_rules_end\"\n"
3504 printf("# Kernel >= 2.6.22 jumps here\n"
3508 printf("# For Linux >= 2.6.22 without CONFIG_USB_DEVICE_CLASS=y\n"
3514 printf("# Kernel < 2.6.22 jumps here\n"
3523 printf ("# ");
3527 printf (" | ");
3528 printf ("%s", name->name);
3540 printf("\n# ");
3544 printf ("\n");
3547 printf ("ATTR{idVendor}==\"%s\", ATTR{idProduct}==\"%s\", ENV{libsane_matched}=\"yes\"\n",
3550 printf ("ATTR{idVendor}==\"%s\", ATTR{idProduct}==\"%s\", MODE=\"%s\", GROUP=\"%s\", ENV{libsane_matched}=\"yes\"\n",
3556 printf("\n# The following rule will disable USB autosuspend for the device\n");
3557 printf("ENV{libsane_matched}==\"yes\", RUN+=\"/bin/sh -c 'if test -e /sys/$env{DEVPATH}/power/control; then echo on > /sys/$env{DEVPATH}/power/control; elif test -e /sys/$env{DEVPATH}/power/level; then echo on > /sys/$env{DEVPATH}/power/level; fi'\"\n");
3559 printf ("\nLABEL=\"libsane_usb_rules_end\"\n\n");
3561 printf ("SUBSYSTEMS==\"scsi\", GOTO=\"libsane_scsi_rules_begin\"\n");
3562 printf ("GOTO=\"libsane_scsi_rules_end\"\n\n");
3563 printf ("LABEL=\"libsane_scsi_rules_begin\"\n");
3564 printf ("# Generic: SCSI device type 6 indicates a scanner\n");
3567 printf ("KERNEL==\"sg[0-9]*\", ATTRS{type}==\"6\", ENV{libsane_matched}=\"yes\"\n");
3569 printf ("KERNEL==\"sg[0-9]*\", ATTRS{type}==\"6\", MODE=\"%s\", GROUP=\"%s\", ENV{libsane_matched}=\"yes\"\n", DEVMODE, DEVGROUP);
3572 printf ("# Some scanners advertise themselves as SCSI device type 3\n");
3574 printf ("# Wildcard: for some Epson SCSI scanners\n");
3576 printf ("KERNEL==\"sg[0-9]*\", ATTRS{type}==\"3\", ATTRS{vendor}==\"EPSON\", ATTRS{model}==\"SCANNER*\", ENV{libsane_matched}=\"yes\"\n");
3578 printf ("KERNEL==\"sg[0-9]*\", ATTRS{type}==\"3\", ATTRS{vendor}==\"EPSON\", ATTRS{model}==\"SCANNER*\", MODE=\"%s\", GROUP=\"%s\", ENV{libsane_matched}=\"yes\"\n",
3600 printf ("# ");
3604 printf (" | ");
3605 printf ("%s", name->name);
3617 printf("\n# ");
3621 printf ("\n");
3624 printf ("KERNEL==\"sg[0-9]*\", ATTRS{type}==\"3\", ATTRS{vendor}==\"%s\", ATTRS{model}==\"%s\", ENV{libsane_matched}=\"yes\"\n",
3627 printf ("KERNEL==\"sg[0-9]*\", ATTRS{type}==\"3\", ATTRS{vendor}==\"%s\", ATTRS{model}==\"%s\", MODE=\"%s\", GROUP=\"%s\", ENV{libsane_matched}=\"yes\"\n",
3632 printf ("LABEL=\"libsane_scsi_rules_end\"\n");
3635 printf("\nENV{libsane_matched}==\"yes\", RUN+=\"/bin/setfacl -m g:%s:rw $env{DEVNAME}\"\n", DEVGROUP);
3637 printf ("\nENV{libsane_matched}==\"yes\", MODE=\"664\", GROUP=\"scanner\"\n");
3639 printf ("\nLABEL=\"libsane_rules_end\"\n");
3648 printf
3659 printf
3680 printf("ACTION==\"remove\", GOTO=\"libsane_rules_end\"\n\n");
3682 printf("# The following rule will disable USB autosuspend for the device\n");
3683 printf("ENV{DEVTYPE}==\"usb_device\", ENV{libsane_matched}==\"yes\", TEST==\"power/control\", ATTR{power/control}=\"on\"\n\n");
3685 printf ("SUBSYSTEMS==\"scsi\", GOTO=\"libsane_scsi_rules_begin\"\n");
3686 printf ("GOTO=\"libsane_rules_end\"\n\n");
3687 printf ("LABEL=\"libsane_scsi_rules_begin\"\n");
3688 printf ("KERNEL!=\"sg[0-9]*\", GOTO=\"libsane_rules_end\"\n\n");
3690 printf ("# Generic: SCSI device type 6 indicates a scanner\n");
3691 printf ("ATTRS{type}==\"6\", ENV{libsane_matched}=\"yes\"\n\n");
3693 printf ("# Some scanners advertise themselves as SCSI device type 3\n\n");
3695 printf ("# Wildcard: for some Epson SCSI scanners\n");
3696 printf ("ATTRS{type}==\"3\", ATTRS{vendor}==\"EPSON\", ATTRS{model}==\"SCANNER*\", ENV{libsane_matched}=\"yes\"\n\n");
3717 printf ("# ");
3721 printf (" | ");
3722 printf ("%s", name->name);
3734 printf("\n# ");
3738 printf ("\n");
3740 printf ("ATTRS{type}==\"3\", ATTRS{vendor}==\"%s\", ATTRS{model}==\"%s\", ENV{libsane_matched}=\"yes\"\n\n",
3746 printf ("\nLABEL=\"libsane_rules_end\"\n");
3754 printf
3758 printf
3787 printf ("\n# ");
3791 printf (" | ");
3792 printf ("%s", name->name);
3804 printf("\n# ");
3808 printf ("\n");
3818 printf ("usb:v%sp%s*\n libsane_matched=yes\n",
3833 printf ("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
3834 printf ("<!DOCTYPE plist PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n");
3835 printf ("<plist version=\"1.0\">\n");
3836 printf ("<dict>\n");
3837 printf ("\t<key>device info version</key>\n");
3838 printf ("\t<string>2.0</string>\n");
3839 printf ("\t<key>usb</key>\n");
3840 printf ("\t<dict>\n");
3841 printf ("\t\t<key>IOUSBDevice</key>\n");
3842 printf ("\t\t<array>\n");
3845 printf ("\t\t\t<dict>\n");
3846 printf ("\t\t\t\t<key>device type</key>\n");
3847 printf ("\t\t\t\t<string>scanner</string>\n");
3848 printf ("\t\t\t\t<key>product</key>\n");
3849 printf ("\t\t\t\t<string>%s</string>\n", usbid->usb_product_id);
3850 printf ("\t\t\t\t<key>vendor</key>\n");
3851 printf ("\t\t\t\t<string>%s</string>\n", usbid->usb_vendor_id);
3852 printf ("\t\t\t</dict>\n");
3855 printf ("\t\t</array>\n");
3856 printf ("\t</dict>\n");
3857 printf ("</dict>\n");
3858 printf ("</plist>\n");
3871 printf ("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
3872 printf ("<deviceinfo version=\"0.2\">\n");
3873 printf (" <device>\n");
3874 printf (" <!-- SCSI-SUBSYSTEM -->\n");
3875 printf (" <match key=\"info.category\" string=\"scsi_generic\">\n");
3876 printf (" <!-- Some SCSI Scanners announce themselves \"processor\" -->\n");
3877 printf (" <match key=\"@info.parent:scsi.type\" string=\"processor\">\n");
3894 printf (" </match>\n");
3896 printf (" <match key=\"@info.parent:scsi.vendor\" string=\"%s\">\n", scsiid->scsi_vendor_id);
3901 printf (" <!-- SCSI Scanner ");
3905 printf (" | ");
3906 printf ("\"%s\"", name->name);
3909 printf (" -->\n");
3910 printf (" <match key=\"@info.parent:scsi.model\" string=\"%s\">\n", scsiid->scsi_product_id);
3911 printf (" <append key=\"info.capabilities\" type=\"strlist\">scanner</append>\n");
3912 printf (" </match>\n");
3918 printf (" </match>\n");
3920 printf (" </match>\n");
3921 printf (" </match>\n");
3922 printf (" <!-- USB-SUBSYSTEM -->\n");
3925 printf (" <match key=\"info.subsystem\" string=\"usb\">\n");
3927 printf (" <match key=\"info.bus\" string=\"usb\">\n");
3938 printf (" </match>\n");
3940 printf (" <match key=\"usb.vendor_id\" int=\"%s\">\n", usbid->usb_vendor_id);
3946 printf (" <!-- ");
3950 printf (" | ");
3952 printf ("%s", name->name);
3958 printf("\n ");
3962 printf (" -->\n");
3963 printf (" <match key=\"usb.product_id\" int=\"%s\">\n", usbid->usb_product_id);
3964 printf (" <append key=\"info.capabilities\" type=\"strlist\">scanner</append>\n");
3965 printf (" <merge key=\"scanner.access_method\" type=\"string\">proprietary</merge>\n");
3966 printf (" </match>\n");
3972 printf (" </match>\n");
3974 printf (" </match>\n");
3976 printf (" </device>\n");
3977 printf ("</deviceinfo>\n");