Messages in this thread | | | From | Keith Owens <> | Subject | Re: format_cpumask() | Date | Tue, 18 Nov 2003 11:34:11 +1100 |
| |
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/
| |