diff options
author | Jonathan Matthew <jmatthew@cvs.openbsd.org> | 2014-02-11 11:41:47 +0000 |
---|---|---|
committer | Jonathan Matthew <jmatthew@cvs.openbsd.org> | 2014-02-11 11:41:47 +0000 |
commit | edf66ed64c198cdf3dc0225f6dbca6347866343b (patch) | |
tree | 017a81fce4e8d9c70ddcfc71c5ba11de1eb70ba7 /sys/dev | |
parent | 7f4dfb94e936228a749cc88e9cfdfc929e2911f9 (diff) |
fix endianness of fc4 type registration (again), and don't bother printing
the fc4 types for fabric ports we find
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/qla.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ic/qla.c b/sys/dev/ic/qla.c index 62e0a5fb4db..dcc910fab37 100644 --- a/sys/dev/ic/qla.c +++ b/sys/dev/ic/qla.c @@ -1,4 +1,4 @@ -/* $OpenBSD: qla.c,v 1.19 2014/02/10 22:41:27 jmatthew Exp $ */ +/* $OpenBSD: qla.c,v 1.20 2014/02/11 11:41:46 jmatthew Exp $ */ /* * Copyright (c) 2011 David Gwynne <dlg@openbsd.org> @@ -1378,7 +1378,7 @@ qla_update_fabric(struct qla_softc *sc) rft->subcmd = htole16(QLA_SNS_RFT_ID); rft->max_word = htole16(sizeof(struct qla_sns_req_hdr) / 4); rft->port_id = htole32(sc->sc_port_id); - rft->fc4_types[0] = (1 << QLA_FC4_SCSI); + rft->fc4_types[0] = htole32(1 << QLA_FC4_SCSI); if (qla_sns_req(sc, sc->sc_scratch, sizeof(*rft))) { printf("%s: RFT_ID failed\n", DEVNAME(sc)); /* we might be able to continue after this fails */ @@ -1427,9 +1427,9 @@ qla_next_fabric_port(struct qla_softc *sc, u_int32_t *firstport, if (*firstport == 0xffffffff) *firstport = *lastport; - printf("%s: GA_NXT: port type/id: %x, wwpn %llx, wwnn %llx, fct: %x\n", + printf("%s: GA_NXT: port type/id: %x, wwpn %llx, wwnn %llx\n", DEVNAME(sc), *lastport, betoh64(gar->port_name), - betoh64(gar->node_name), gar->fc4_types[0]); + betoh64(gar->node_name)); /* don't try to log in to ourselves */ if (*lastport == sc->sc_port_id) { |