summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2011-09-19 11:14:21 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2011-09-19 11:14:21 +0000
commit5f53da613d398a2e7859380ac9fe1e684824381c (patch)
tree5123670ee70c6c2302479b3622daaa38e40594a2 /sys
parent7c66463ceb2471bfde79c77d00fb56cf5ffb0b46 (diff)
%b format strings take the value before the bitname string, not the other
way around.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/hppa/dev/elroy.c4
-rw-r--r--sys/arch/hppa64/dev/elroy.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/hppa/dev/elroy.c b/sys/arch/hppa/dev/elroy.c
index 17018417931..c9cd43fafb3 100644
--- a/sys/arch/hppa/dev/elroy.c
+++ b/sys/arch/hppa/dev/elroy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: elroy.c,v 1.9 2011/01/01 15:18:23 kettenis Exp $ */
+/* $OpenBSD: elroy.c,v 1.10 2011/09/19 11:14:20 miod Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
@@ -1269,7 +1269,7 @@ elroy_attach(struct device *parent, struct device *self, void *aux)
elroy_read32(&r->status) & htole32(ELROY_STATUS_RC); DELAY(10));
if (i < 0) {
printf(": reset failed; status %b\n",
- ELROY_STATUS_BITS, htole32(r->status));
+ htole32(r->status), ELROY_STATUS_BITS);
return;
}
diff --git a/sys/arch/hppa64/dev/elroy.c b/sys/arch/hppa64/dev/elroy.c
index d102e77cb8e..a3b794c4421 100644
--- a/sys/arch/hppa64/dev/elroy.c
+++ b/sys/arch/hppa64/dev/elroy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: elroy.c,v 1.11 2011/01/02 13:36:09 jasper Exp $ */
+/* $OpenBSD: elroy.c,v 1.12 2011/09/19 11:14:20 miod Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
@@ -1275,7 +1275,7 @@ elroy_attach(struct device *parent, struct device *self, void *aux)
elroy_read32(&r->status) & htole32(ELROY_STATUS_RC); DELAY(10));
if (i < 0) {
printf(": reset failed; status %b\n",
- ELROY_STATUS_BITS, htole32(r->status));
+ htole32(r->status), ELROY_STATUS_BITS);
return;
}