lkml.org 
[lkml]   [2012]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 12/14] i5100_edac: Fix a warning when compiled with 32 bits
    Date
    drivers/edac/i5100_edac.c: In function ‘i5100_init_csrows’:
    drivers/edac/i5100_edac.c:862:3: warning: format ‘%zd’ expects argument of type ‘signed size_t’, but argument 5 has type ‘long unsigned int’ [-Wformat]

    Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
    ---
    drivers/edac/i5100_edac.c | 4 ++--
    1 files changed, 2 insertions(+), 2 deletions(-)

    diff --git a/drivers/edac/i5100_edac.c b/drivers/edac/i5100_edac.c
    index 11aba5e..dd260c8 100644
    --- a/drivers/edac/i5100_edac.c
    +++ b/drivers/edac/i5100_edac.c
    @@ -859,8 +859,8 @@ static void __devinit i5100_init_csrows(struct mem_ctl_info *mci)
    i5100_rank_to_slot(mci, chan, rank));
    }

    - debugf2("dimm channel %d, rank %d, size %zd\n",
    - chan, rank, PAGES_TO_MiB(npages));
    + debugf2("dimm channel %d, rank %d, size %ld\n",
    + chan, rank, (long)PAGES_TO_MiB(npages));
    }
    }

    --
    1.7.8
    --
    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: 2012-03-29 19:09    [W:0.021 / U:0.660 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site