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    [from the cache]
©2003-2011 Jasper Spaans