mirror of https://github.com/ipxe/ipxe.git
bswap_16() exists; no need to use __bswap_16()
parent
a95b458660
commit
928c388c6f
|
@ -13,14 +13,14 @@ char * isa_id_string ( uint16_t vendor, uint16_t product ) {
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
/* Vendor ID is a compressed ASCII string */
|
/* Vendor ID is a compressed ASCII string */
|
||||||
vendor = __bswap_16 ( vendor );
|
vendor = bswap_16 ( vendor );
|
||||||
for ( i = 2 ; i >= 0 ; i-- ) {
|
for ( i = 2 ; i >= 0 ; i-- ) {
|
||||||
buf[i] = ( 'A' - 1 + ( vendor & 0x1f ) );
|
buf[i] = ( 'A' - 1 + ( vendor & 0x1f ) );
|
||||||
vendor >>= 5;
|
vendor >>= 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Product ID is a 4-digit hex string */
|
/* Product ID is a 4-digit hex string */
|
||||||
sprintf ( &buf[3], "%hx", __bswap_16 ( product ) );
|
sprintf ( &buf[3], "%hx", bswap_16 ( product ) );
|
||||||
|
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue