summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2007-02-21 14:25:52 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2007-02-21 14:25:52 +0000
commit9509a76f2d79f7c527156c714aaebc5eacbc4400 (patch)
tree790f51dd867ae22ddf54993cb305eecee89b4cfe /sys
parentc8857fc70b11845025b4bf7ff33f789a21a27e0a (diff)
Make the firmware load on big endian systems and while there make sure that
the right value is printed in case of an error. OK mglocker@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/acx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/acx.c b/sys/dev/ic/acx.c
index 20ab345d78b..39b882fd93f 100644
--- a/sys/dev/ic/acx.c
+++ b/sys/dev/ic/acx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acx.c,v 1.61 2007/02/20 22:06:46 claudio Exp $ */
+/* $OpenBSD: acx.c,v 1.62 2007/02/21 14:25:51 claudio Exp $ */
/*
* Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org>
@@ -1578,9 +1578,9 @@ acx_load_firmware(struct acx_softc *sc, uint32_t offset, const uint8_t *data,
fw = (const uint32_t *)data;
- if (*fw != csum) {
+ if (*fw != htole32(csum)) {
printf("%s: firmware checksum 0x%x does not match 0x%x!\n",
- ifp->if_xname, fw, csum);
+ ifp->if_xname, *fw, htole32(csum));
return (ENXIO);
}