http://git.etherboot.org
/
people
/
lynusvaz
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a95b458
)
bswap_16() exists; no need to use __bswap_16()
author
Michael Brown
<mcb30@etherboot.org>
Thu, 21 Apr 2005 16:38:28 +0000
(16:38 +0000)
committer
Michael Brown
<mcb30@etherboot.org>
Thu, 21 Apr 2005 16:38:28 +0000
(16:38 +0000)
src/drivers/bus/isa_ids.c
patch
|
blob
|
history
diff --git
a/src/drivers/bus/isa_ids.c
b/src/drivers/bus/isa_ids.c
index
85175e0
..
a175ed4
100644
(file)
--- a/
src/drivers/bus/isa_ids.c
+++ b/
src/drivers/bus/isa_ids.c
@@
-13,14
+13,14
@@
char * isa_id_string ( uint16_t vendor, uint16_t product ) {
int i;
/* Vendor ID is a compressed ASCII string */
- vendor =
__
bswap_16 ( 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",
__
bswap_16 ( product ) );
+ sprintf ( &buf[3], "%hx", bswap_16 ( product ) );
return buf;
}