Commit 3e073367 authored by Michael Cree's avatar Michael Cree Committed by Matt Turner

alpha: Fix printk format errors

When compiling alpha generic build get errors such as:
arch/alpha/kernel/err_marvel.c: In function ‘marvel_print_err_cyc’:
arch/alpha/kernel/err_marvel.c:119: error: format ‘%ld’ expects type ‘long int’, but argument 6 has type ‘u64’

Replaced a number of %ld format specifiers with %lld since u64
is unsigned long long.
Signed-off-by: default avatarMichael Cree <mcree@orcon.net.nz>
Signed-off-by: default avatarMatt Turner <mattst88@gmail.com>
parent 7b598cdd
...@@ -109,7 +109,7 @@ marvel_print_err_cyc(u64 err_cyc) ...@@ -109,7 +109,7 @@ marvel_print_err_cyc(u64 err_cyc)
#define IO7__ERR_CYC__CYCLE__M (0x7) #define IO7__ERR_CYC__CYCLE__M (0x7)
printk("%s Packet In Error: %s\n" printk("%s Packet In Error: %s\n"
"%s Error in %s, cycle %ld%s%s\n", "%s Error in %s, cycle %lld%s%s\n",
err_print_prefix, err_print_prefix,
packet_desc[EXTRACT(err_cyc, IO7__ERR_CYC__PACKET)], packet_desc[EXTRACT(err_cyc, IO7__ERR_CYC__PACKET)],
err_print_prefix, err_print_prefix,
...@@ -313,7 +313,7 @@ marvel_print_po7_ugbge_sym(u64 ugbge_sym) ...@@ -313,7 +313,7 @@ marvel_print_po7_ugbge_sym(u64 ugbge_sym)
} }
printk("%s Up Hose Garbage Symptom:\n" printk("%s Up Hose Garbage Symptom:\n"
"%s Source Port: %ld - Dest PID: %ld - OpCode: %s\n", "%s Source Port: %lld - Dest PID: %lld - OpCode: %s\n",
err_print_prefix, err_print_prefix,
err_print_prefix, err_print_prefix,
EXTRACT(ugbge_sym, IO7__PO7_UGBGE_SYM__UPH_SRC_PORT), EXTRACT(ugbge_sym, IO7__PO7_UGBGE_SYM__UPH_SRC_PORT),
...@@ -552,7 +552,7 @@ marvel_print_pox_spl_cmplt(u64 spl_cmplt) ...@@ -552,7 +552,7 @@ marvel_print_pox_spl_cmplt(u64 spl_cmplt)
#define IO7__POX_SPLCMPLT__REM_BYTE_COUNT__M (0xfff) #define IO7__POX_SPLCMPLT__REM_BYTE_COUNT__M (0xfff)
printk("%s Split Completion Error:\n" printk("%s Split Completion Error:\n"
"%s Source (Bus:Dev:Func): %ld:%ld:%ld\n", "%s Source (Bus:Dev:Func): %lld:%lld:%lld\n",
err_print_prefix, err_print_prefix,
err_print_prefix, err_print_prefix,
EXTRACT(spl_cmplt, IO7__POX_SPLCMPLT__SOURCE_BUS), EXTRACT(spl_cmplt, IO7__POX_SPLCMPLT__SOURCE_BUS),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment