although we don't use this, clean up mp.c anyway. consider removing mp.c in the future. Reference: /n/atom/patch/applied2013/fsmpclean Date: Wed Sep 4 18:59:06 CES 2013 Signed-off-by: quanstro@quanstro.net --- /sys/src/fs/amd64/mp.c Wed Sep 4 18:58:37 2013 +++ /sys/src/fs/amd64/mp.c Wed Sep 4 18:58:37 2013 @@ -53,16 +53,13 @@ static void mpintrprint(char* s, u8int* p) { - char buf[128], *b, *e; - char format[] = " type %d flags %#ux bus %d IRQ %d APIC %d INTIN %d\n"; + char buf[64]; - b = buf; - e = b + sizeof(buf); - b = seprint(b, e, "mpparse: intr:"); + buf[0] = 0; if(s != nil) - b = seprint(b, e, " %s:", s); - seprint(b, e, format, p[1], l16get(p+2), p[4], p[5], p[6], p[7]); - print(buf); + snprint(buf, sizeof buf, " %s:", s); + print("mpparse: intr:%s type %d flags %#ux bus %d irq %d apic %d intin %d", + buf, p[1], l16get(p+2), p[4], p[5], p[6], p[7]); } static u32int @@ -294,7 +291,6 @@ } } else{ -// xlapic[p[6]].lvt[p[7]] = lo; if((a = lapiclookup(p[6])) != nil) a->lvt[p[7]] = lo; }