lkml.org 
[lkml]   [2003]   [Nov]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: format_cpumask()
    Date
    On Mon, 17 Nov 2003 16:26:47 -0800, 
    William Lee Irwin III <wli@holomorphy.com> wrote:
    >+ m = sprintf(buf, "%0*lx", 2*sizeof(long), cpus_coerce(tmp));

    Sorry, that has to be

    + m = sprintf(buf, "%0*lx", (int)(2*sizeof(long)), cpus_coerce(tmp));

    otherwise gcc complains on 64 bit systems. The '*' flag requires an
    int parameter, sizeof returns long.

    -
    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: 2005-03-22 13:58    [W:0.020 / U:31.312 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site