]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commitec5d2dfe72cf4808ae4ecee03454a4d91dfcbe0c
tree89f4547fe9a88cfe5cb76b324fa95d7d1e0cb97c
parentaed3a8c9bb1a8623a618232087c5ff62718e3b9a
[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