diff options
| author | Michael Brown | 2005-04-13 14:11:21 +0200 |
|---|---|---|
| committer | Michael Brown | 2005-04-13 14:11:21 +0200 |
| commit | 4ecbc63296c561bf3b68eccc3f9ab20638032cef (patch) | |
| tree | 3462b7a5efa0eeae073feb5d79705187538481d6 /src/drivers/bus | |
| parent | htons was used in ISAPnP code just due to ISAPnP storing bytes in (diff) | |
| download | ipxe-4ecbc63296c561bf3b68eccc3f9ab20638032cef.tar.gz ipxe-4ecbc63296c561bf3b68eccc3f9ab20638032cef.tar.xz ipxe-4ecbc63296c561bf3b68eccc3f9ab20638032cef.zip | |
Use __bswap_16, since we're not dealing with quantities to go onto the network.
Diffstat (limited to 'src/drivers/bus')
| -rw-r--r-- | src/drivers/bus/isa_ids.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/bus/isa_ids.c b/src/drivers/bus/isa_ids.c index f7be1129c..e6ca7d590 100644 --- a/src/drivers/bus/isa_ids.c +++ b/src/drivers/bus/isa_ids.c @@ -11,14 +11,14 @@ char * isa_id_string ( uint16_t vendor, uint16_t product ) { int i; /* Vendor ID is a compressed ASCII string */ - vendor = htons ( vendor ); + vendor = __bswap_16 ( vendor ); for ( i = 2 ; i >= 0 ; i-- ) { buf[i] = ( 'A' - 1 + ( vendor & 0x1f ) ); vendor >>= 5; } /* Product ID is a 4-digit hex string */ - sprintf ( &buf[3], "%hx", htons ( product ) ); + sprintf ( &buf[3], "%hx", __bswap_16 ( product ) ); return buf; } |
