[PATCH] powermac: Fix some 64b resource damage
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sun, 2 Jul 2006 01:55:03 +0000 (11:55 +1000)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 2 Jul 2006 03:11:56 +0000 (20:11 -0700)
commitd63fb6c55f5f9eb3032fc5c3ab6eb9a26dd67cdc
tree8e2d3ff8deef62cf64f3989d5f6804feaa3753fe
parentfc25465f09414538afdbceacc517dd4dbabadeca
[PATCH] powermac: Fix some 64b resource damage

The 64 bits resource patches did a bit of damage on PowerMac causing a
buffer overflow in macio_asic and a warning in a sound driver. The
former is fixed by reverting the sprintf of the bus_id to %08x as it was
before. The bus_id used for macio devices is always a 32 bits value
(macio always sits in 32 bits space) and since it's exposed to userland,
the format of the string shouldn't be changed like that anyway. The
second by using the proper type for printk.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/macintosh/macio_asic.c
sound/ppc/pmac.c