diff options
author | 2019-11-17 01:38:20 +0000 | |
---|---|---|
committer | 2019-11-17 01:38:20 +0000 | |
commit | 32cac6b8e128456720d97b7c6d50ae08619d83b9 (patch) | |
tree | 6bcabe4683e91401bc74e3059af010120f504a97 | |
parent | Drop back to the legacy tls method if we are doing client authenticaiton (diff) | |
download | wireguard-openbsd-32cac6b8e128456720d97b7c6d50ae08619d83b9.tar.xz wireguard-openbsd-32cac6b8e128456720d97b7c6d50ae08619d83b9.zip |
print firmware version as unsigned ints
ok stsp
-rw-r--r-- | sys/dev/pci/if_iwm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_iwm.c b/sys/dev/pci/if_iwm.c index d00bf976e93..a8da81de7dc 100644 --- a/sys/dev/pci/if_iwm.c +++ b/sys/dev/pci/if_iwm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_iwm.c,v 1.281 2019/11/12 07:24:22 stsp Exp $ */ +/* $OpenBSD: if_iwm.c,v 1.282 2019/11/17 01:38:20 jcs Exp $ */ /* * Copyright (c) 2014, 2016 genua gmbh <info@genua.de> @@ -851,7 +851,7 @@ iwm_read_firmware(struct iwm_softc *sc, enum iwm_ucode_type ucode_type) goto parse_out; } snprintf(sc->sc_fwver, sizeof(sc->sc_fwver), - "%d.%d.%d", + "%u.%u.%u", le32toh(((uint32_t *)tlv_data)[0]), le32toh(((uint32_t *)tlv_data)[1]), le32toh(((uint32_t *)tlv_data)[2])); |