file2alias.c (42249094f79422fbf5ed4b54eeb48ff096809b8f) | file2alias.c (03b56329f9bb5a1cb73d7dc659d529a9a9bf3acc) |
---|---|
1/* Simple code to turn various tables in an ELF file into alias definitions. 2 * This deals with kernel datastructures where they should be 3 * dealt with: in the kernel source. 4 * 5 * Copyright 2002-2003 Rusty Russell, IBM Corporation 6 * 2003 Kai Germaschewski 7 * 8 * --- 196 unchanged lines hidden (view full) --- 205 "[%X-%X]", 206 range_lo, 207 range_hi); 208 else { 209 sprintf(alias + strlen(alias), 210 range_lo < 0x9 ? "[%X-9" : "[%X", 211 range_lo); 212 sprintf(alias + strlen(alias), | 1/* Simple code to turn various tables in an ELF file into alias definitions. 2 * This deals with kernel datastructures where they should be 3 * dealt with: in the kernel source. 4 * 5 * Copyright 2002-2003 Rusty Russell, IBM Corporation 6 * 2003 Kai Germaschewski 7 * 8 * --- 196 unchanged lines hidden (view full) --- 205 "[%X-%X]", 206 range_lo, 207 range_hi); 208 else { 209 sprintf(alias + strlen(alias), 210 range_lo < 0x9 ? "[%X-9" : "[%X", 211 range_lo); 212 sprintf(alias + strlen(alias), |
213 range_hi > 0xA ? "a-%X]" : "%X]", 214 range_lo); | 213 range_hi > 0xA ? "A-%X]" : "%X]", 214 range_hi); |
215 } 216 } 217 if (bcdDevice_initial_digits < (sizeof(bcdDevice_lo) * 2 - 1)) 218 strcat(alias, "*"); 219 220 ADD(alias, "dc", match_flags&USB_DEVICE_ID_MATCH_DEV_CLASS, 221 bDeviceClass); 222 ADD(alias, "dsc", match_flags&USB_DEVICE_ID_MATCH_DEV_SUBCLASS, --- 1048 unchanged lines hidden --- | 215 } 216 } 217 if (bcdDevice_initial_digits < (sizeof(bcdDevice_lo) * 2 - 1)) 218 strcat(alias, "*"); 219 220 ADD(alias, "dc", match_flags&USB_DEVICE_ID_MATCH_DEV_CLASS, 221 bDeviceClass); 222 ADD(alias, "dsc", match_flags&USB_DEVICE_ID_MATCH_DEV_SUBCLASS, --- 1048 unchanged lines hidden --- |