]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] PS3: Fix printing of os-area magic numbers
authorGeoff Levand <geoffrey.levand@am.sony.com>
Sun, 23 Dec 2007 17:41:01 +0000 (04:41 +1100)
committerPaul Mackerras <paulus@samba.org>
Fri, 28 Dec 2007 04:07:52 +0000 (15:07 +1100)
commit12ac92cab7e7c645eb83b01f6f20237eab5ff6a4
tree89f4547fe9a88cfe5cb76b324fa95d7d1e0cb97c
parent5c792d2d58f87d08b26a5362b83768d5bc764153
[POWERPC] PS3: Fix printing of os-area magic numbers

Fix a bug in the printing of the os-area magic numbers which assumed
that magic numbers were zero terminated strings.  The magic numbers
are represented in memory as integers.  If the os-area sections are
not initialized correctly they could contained random data that would
be printed to the display.  Also unify the handling of header and db
magic numbers and make both of type array of u8.

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/ps3/os-area.c