Re: format_cpumask()

From: Keith Owens
Date: Mon Nov 17 2003 - 19:37:01 EST


On Mon, 17 Nov 2003 16:26:47 -0800,
William Lee Irwin III <wli@xxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/