From 2f38266c0a43b935def4abdb283c6a5d033930ba Mon Sep 17 00:00:00 2001 From: nonaka Date: Mon, 9 Jan 2017 08:05:14 +0000 Subject: [PATCH] use correct header size. --- sys/dev/pci/if_iwm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/pci/if_iwm.c b/sys/dev/pci/if_iwm.c index e93e1ab06f2b..080497573f54 100644 --- a/sys/dev/pci/if_iwm.c +++ b/sys/dev/pci/if_iwm.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_iwm.c,v 1.51 2017/01/08 08:29:23 nonaka Exp $ */ +/* $NetBSD: if_iwm.c,v 1.52 2017/01/09 08:05:14 nonaka Exp $ */ /* OpenBSD: if_iwm.c,v 1.147 2016/11/17 14:12:33 stsp Exp */ #define IEEE80211_NO_HT /* @@ -107,7 +107,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.51 2017/01/08 08:29:23 nonaka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.52 2017/01/09 08:05:14 nonaka Exp $"); #include #include @@ -3856,7 +3856,7 @@ iwm_send_cmd(struct iwm_softc *sc, struct iwm_host_cmd *hcmd) desc->num_tbs = 1; DPRINTFN(8, ("iwm_send_cmd 0x%x size=%zu %s\n", - code, sizeof(cmd->hdr) + paylen, async ? " (async)" : "")); + code, hdrlen + paylen, async ? " (async)" : "")); if (paylen > datasz) { bus_dmamap_sync(sc->sc_dmat, txdata->map, 0,