]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] spufs: Change %llx to 0x%llx.
authorDwayne Grant McConnell <decimal@us.ibm.com>
Mon, 20 Nov 2006 17:44:57 +0000 (18:44 +0100)
committerPaul Mackerras <paulus@samba.org>
Mon, 4 Dec 2006 09:39:44 +0000 (20:39 +1100)
commitc69f00c7c0e16fb6735e382a3cdd28984162b64a
treee3c25427460f4f1e4898f07ed88eec3da80d01c7
parent7bedf2f70d6f3628a41fd0af1691ef745a1ec8e8
[POWERPC] spufs: Change %llx to 0x%llx.

This patches changes /npc, /decr, /decr_status, /spu_tag_mask,
/event_mask, /event_status, and /srr0 files to provide output according to
the format string "0x%llx" instead of "%llx".

Before this patch some files used "0x%llx" and other used "%llx" which is
inconsistent and potentially confusing. A user might assume "%llx" numbers
were decimal if they happened to not contain any a-f digits. This change
will break any code cannot tolerate a leading 0x in the file contents. The
only known users of these files are the libspe but there might also be
some scripts which access these files. This risk is deemed acceptable for
future consistency.

Signed-off-by: Dwayne Grant McConnell <decimal@us.ibm.com>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/spufs/file.c