lkml.org 
[lkml]   [2008]   [Jan]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] iwlwifi: fix compilation warning in 'iwl-4965.c'
    On Fri, 4 Jan 2008 23:05:54 +0100 Miguel Botón wrote:

    > This patch fixes a compilation warning in 'iwl-4965.c'.

    It would be helpful to have the warning message right here.<---

    > Signed-off-by: Miguel Botón <mboton@gmail.com>
    >
    > diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c
    > index 74999af..92237cd 100644
    > --- a/drivers/net/wireless/iwlwifi/iwl-4965.c
    > +++ b/drivers/net/wireless/iwlwifi/iwl-4965.c
    > @@ -3616,7 +3616,7 @@ static void iwl4965_add_radiotap(struct iwl4965_priv *priv,
    > if (skb_headroom(skb) < sizeof(*iwl4965_rt)) {
    > if (net_ratelimit())
    > printk(KERN_ERR "not enough headroom [%d] for "
    > - "radiotap head [%d]\n",
    > + "radiotap head [%ld]\n",
    > skb_headroom(skb), sizeof(*iwl4965_rt));
    > return;
    > }

    sizeof() (or size_t) normally needs %zd.

    ---
    ~Randy
    desserts: http://www.xenotime.net/linux/recipes/
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2008-01-04 23:21    [W:0.022 / U:33.104 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site