diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2009-03-31 18:23:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-01 11:59:16 -0400 |
commit | 5f0e3da6e186598bbd2569410ab60fa645ba00c9 (patch) | |
tree | bccceb64fd0e81080733a1595a66979bcd999e3c /arch/alpha/kernel/err_titan.c | |
parent | a6209d6d71f2ab8c63cc1587ef65490d83022baf (diff) |
alpha: convert u64 to unsigned long long
Convert alpha architecture to use u64 as unsigned long long. This is
being done so that (a) all arches use u64 as unsigned long long and (b)
printk of a u64 as %ll[ux] will not generate format warnings by gcc.
The only gcc cross-compiler that I have is 4.0.2, which generates errors
about miscompiling __weak references, so I have commented out that line in
compiler-gcc4.h so that most of these compile, but more builds and real
machine testing would be Real Good.
[akpm@linux-foundation.org: fix warning]
[akpm@linux-foundation.org: fix build]
[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
From: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/alpha/kernel/err_titan.c')
-rw-r--r-- | arch/alpha/kernel/err_titan.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/arch/alpha/kernel/err_titan.c b/arch/alpha/kernel/err_titan.c index 257449ed15ef..c7e28a88d6e3 100644 --- a/arch/alpha/kernel/err_titan.c +++ b/arch/alpha/kernel/err_titan.c | |||
@@ -107,12 +107,12 @@ titan_parse_p_serror(int which, u64 serror, int print) | |||
107 | if (!print) | 107 | if (!print) |
108 | return status; | 108 | return status; |
109 | 109 | ||
110 | printk("%s PChip %d SERROR: %016lx\n", | 110 | printk("%s PChip %d SERROR: %016llx\n", |
111 | err_print_prefix, which, serror); | 111 | err_print_prefix, which, serror); |
112 | if (serror & TITAN__PCHIP_SERROR__ECCMASK) { | 112 | if (serror & TITAN__PCHIP_SERROR__ECCMASK) { |
113 | printk("%s %sorrectable ECC Error:\n" | 113 | printk("%s %sorrectable ECC Error:\n" |
114 | " Source: %-6s Command: %-8s Syndrome: 0x%08x\n" | 114 | " Source: %-6s Command: %-8s Syndrome: 0x%08x\n" |
115 | " Address: 0x%lx\n", | 115 | " Address: 0x%llx\n", |
116 | err_print_prefix, | 116 | err_print_prefix, |
117 | (serror & TITAN__PCHIP_SERROR__UECC) ? "Unc" : "C", | 117 | (serror & TITAN__PCHIP_SERROR__UECC) ? "Unc" : "C", |
118 | serror_src[EXTRACT(serror, TITAN__PCHIP_SERROR__SRC)], | 118 | serror_src[EXTRACT(serror, TITAN__PCHIP_SERROR__SRC)], |
@@ -223,7 +223,7 @@ titan_parse_p_perror(int which, int port, u64 perror, int print) | |||
223 | if (!print) | 223 | if (!print) |
224 | return status; | 224 | return status; |
225 | 225 | ||
226 | printk("%s PChip %d %cPERROR: %016lx\n", | 226 | printk("%s PChip %d %cPERROR: %016llx\n", |
227 | err_print_prefix, which, | 227 | err_print_prefix, which, |
228 | port ? 'A' : 'G', perror); | 228 | port ? 'A' : 'G', perror); |
229 | if (perror & TITAN__PCHIP_PERROR__IPTPW) | 229 | if (perror & TITAN__PCHIP_PERROR__IPTPW) |
@@ -316,7 +316,7 @@ titan_parse_p_agperror(int which, u64 agperror, int print) | |||
316 | addr = EXTRACT(agperror, TITAN__PCHIP_AGPERROR__ADDR) << 3; | 316 | addr = EXTRACT(agperror, TITAN__PCHIP_AGPERROR__ADDR) << 3; |
317 | len = EXTRACT(agperror, TITAN__PCHIP_AGPERROR__LEN); | 317 | len = EXTRACT(agperror, TITAN__PCHIP_AGPERROR__LEN); |
318 | 318 | ||
319 | printk("%s PChip %d AGPERROR: %016lx\n", err_print_prefix, | 319 | printk("%s PChip %d AGPERROR: %016llx\n", err_print_prefix, |
320 | which, agperror); | 320 | which, agperror); |
321 | if (agperror & TITAN__PCHIP_AGPERROR__NOWINDOW) | 321 | if (agperror & TITAN__PCHIP_AGPERROR__NOWINDOW) |
322 | printk("%s No Window\n", err_print_prefix); | 322 | printk("%s No Window\n", err_print_prefix); |
@@ -597,16 +597,16 @@ privateer_process_680_frame(struct el_common *mchk_header, int print) | |||
597 | return status; | 597 | return status; |
598 | 598 | ||
599 | /* TODO - decode instead of just dumping... */ | 599 | /* TODO - decode instead of just dumping... */ |
600 | printk("%s Summary Flags: %016lx\n" | 600 | printk("%s Summary Flags: %016llx\n" |
601 | " CChip DIRx: %016lx\n" | 601 | " CChip DIRx: %016llx\n" |
602 | " System Management IR: %016lx\n" | 602 | " System Management IR: %016llx\n" |
603 | " CPU IR: %016lx\n" | 603 | " CPU IR: %016llx\n" |
604 | " Power Supply IR: %016lx\n" | 604 | " Power Supply IR: %016llx\n" |
605 | " LM78 Fault Status: %016lx\n" | 605 | " LM78 Fault Status: %016llx\n" |
606 | " System Doors: %016lx\n" | 606 | " System Doors: %016llx\n" |
607 | " Temperature Warning: %016lx\n" | 607 | " Temperature Warning: %016llx\n" |
608 | " Fan Control: %016lx\n" | 608 | " Fan Control: %016llx\n" |
609 | " Fatal Power Down Code: %016lx\n", | 609 | " Fatal Power Down Code: %016llx\n", |
610 | err_print_prefix, | 610 | err_print_prefix, |
611 | emchk->summary, | 611 | emchk->summary, |
612 | emchk->c_dirx, | 612 | emchk->c_dirx, |