Lines Matching refs:printf
90 printf("# UDEV-style hotplug map for libmtp\n"); in main()
91 printf("# Put this file in /etc/udev/rules.d\n\n"); in main()
92 printf("ACTION!=\"add\", GOTO=\"libmtp_rules_end\"\n"); in main()
93 printf("ENV{MAJOR}!=\"?*\", GOTO=\"libmtp_rules_end\"\n"); in main()
94 printf("SUBSYSTEM==\"usb\", GOTO=\"libmtp_usb_rules\"\n" in main()
101 …printf("# This usermap will call the script \"libmtp.sh\" whenever a known MTP device is attached.… in main()
104 printf("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?> <!-- -*- SGML -*- -->\n"); in main()
105 printf("<!-- This file was generated by %s - - fdi -->\n", argv[0]); in main()
106 printf("<deviceinfo version=\"0.2\">\n"); in main()
107 printf(" <device>\n"); in main()
108 printf(" <match key=\"info.subsystem\" string=\"usb\">\n"); in main()
111 printf("# usb.ids style device list from libmtp\n"); in main()
112 printf("# Compare: http://www.linux-usb.org/usb.ids\n"); in main()
122 printf("# %s %s\n", entry->vendor, entry->product); in main()
126 …printf("ATTR{idVendor}==\"%04x\", ATTR{idProduct}==\"%04x\", %s\n", entry->vendor_id, entry->produ… in main()
130 printf("# %s %s\n", entry->vendor, entry->product); in main()
131 …printf("libmtp.sh 0x0003 0x%04x 0x%04x 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 … in main()
134 printf(" <!-- %s %s -->\n", entry->vendor, entry->product); in main()
135 printf(" <match key=\"usb.vendor_id\" int=\"0x%04x\">\n", entry->vendor_id); in main()
136 printf(" <match key=\"usb.product_id\" int=\"0x%04x\">\n", entry->product_id); in main()
138 … printf(" <match key=\"info.capabilities\" contains_not=\"portable_audio_player\">\n"); in main()
139 …printf(" <append key=\"info.capabilities\" type=\"strlist\">portable_audio_player</appe… in main()
140 printf(" </match>\n"); in main()
141 … printf(" <merge key=\"info.vendor\" type=\"string\">%s</merge>\n", entry->vendor); in main()
142 … printf(" <merge key=\"info.product\" type=\"string\">%s</merge>\n", entry->product); in main()
143 … printf(" <merge key=\"info.category\" type=\"string\">portable_audio_player</merge>\n"); in main()
144 …printf(" <merge key=\"portable_audio_player.access_method\" type=\"string\">user</merge>\… in main()
145 …printf(" <match key=\"portable_audio_player.access_method.protocols\" contains_not=\"mtp\… in main()
146 …printf(" <append key=\"portable_audio_player.access_method.protocols\" type=\"strlist\"… in main()
147 printf(" </match>\n"); in main()
148 …printf(" <append key=\"portable_audio_player.access_method.drivers\" type=\"strlist\">lib… in main()
150 …printf(" <match key=\"portable_audio_player.output_formats\" contains_not=\"audio/mpeg\">… in main()
151 …printf(" <append key=\"portable_audio_player.output_formats\" type=\"strlist\">audio/mp… in main()
152 printf(" </match>\n"); in main()
153 …printf(" <match key=\"portable_audio_player.output_formats\" contains_not=\"audio/x-ms-wm… in main()
154 …printf(" <append key=\"portable_audio_player.output_formats\" type=\"strlist\">audio/x-… in main()
155 printf(" </match>\n"); in main()
160 …printf(" <match key=\"portable_audio_player.output_formats\" contains_not=\"application/o… in main()
161 …printf(" <append key=\"portable_audio_player.output_formats\" type=\"strlist\">applicat… in main()
162 printf(" </match>\n"); in main()
164 …printf(" <merge key=\"portable_audio_player.libmtp.protocol\" type=\"string\">mtp</merge>… in main()
165 printf(" </match>\n"); in main()
166 printf(" </match>\n"); in main()
170 printf("%04x\n", entry->vendor_id); in main()
172 printf("\t%04x %s %s\n", entry->product_id, entry->vendor, entry->product); in main()
178 printf("Error.\n"); in main()
185 printf("GOTO=\"libmtp_rules_end\"\n\n"); in main()
186 printf("LABEL=\"libmtp_usb_device_rules\"\n"); in main()
190 printf("# %s %s\n", entry->vendor, entry->product); in main()
191 …printf("ATTRS{idVendor}==\"%04x\", ATTRS{idProduct}==\"%04x\", %s\n", entry->vendor_id, entry->pro… in main()
193 printf("GOTO=\"libmtp_rules_end\"\n\n"); in main()
201 printf("LABEL=\"libmtp_rules_end\"\n"); in main()
204 printf(" </match>\n"); in main()
205 printf(" </device>\n"); in main()
206 printf("</deviceinfo>\n"); in main()
209 printf("\n"); in main()