Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
b012cffe
Commit
b012cffe
authored
Jul 15, 2008
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MIPS] Replace use of print_symbol with new %sP pointer format.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
b29eee49
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
17 deletions
+12
-17
arch/mips/kernel/mips-mt.c
arch/mips/kernel/mips-mt.c
+5
-6
arch/mips/kernel/traps.c
arch/mips/kernel/traps.c
+4
-4
arch/mips/sgi-ip27/ip27-nmi.c
arch/mips/sgi-ip27/ip27-nmi.c
+3
-7
No files found.
arch/mips/kernel/mips-mt.c
View file @
b012cffe
...
@@ -4,7 +4,6 @@
...
@@ -4,7 +4,6 @@
*/
*/
#include <linux/device.h>
#include <linux/device.h>
#include <linux/kallsyms.h>
#include <linux/kernel.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/sched.h>
#include <linux/module.h>
#include <linux/module.h>
...
@@ -84,9 +83,9 @@ void mips_mt_regdump(unsigned long mvpctl)
...
@@ -84,9 +83,9 @@ void mips_mt_regdump(unsigned long mvpctl)
read_vpe_c0_vpeconf0
());
read_vpe_c0_vpeconf0
());
printk
(
" VPE%d.Status : %08lx
\n
"
,
printk
(
" VPE%d.Status : %08lx
\n
"
,
i
,
read_vpe_c0_status
());
i
,
read_vpe_c0_status
());
printk
(
" VPE%d.EPC : %08lx "
,
printk
(
" VPE%d.EPC : %08lx
%pS
\n
"
,
i
,
read_vpe_c0_epc
()
);
i
,
read_vpe_c0_epc
()
,
print_symbol
(
"%s
\n
"
,
read_vpe_c0_epc
());
(
void
*
)
read_vpe_c0_epc
());
printk
(
" VPE%d.Cause : %08lx
\n
"
,
printk
(
" VPE%d.Cause : %08lx
\n
"
,
i
,
read_vpe_c0_cause
());
i
,
read_vpe_c0_cause
());
printk
(
" VPE%d.Config7 : %08lx
\n
"
,
printk
(
" VPE%d.Config7 : %08lx
\n
"
,
...
@@ -111,8 +110,8 @@ void mips_mt_regdump(unsigned long mvpctl)
...
@@ -111,8 +110,8 @@ void mips_mt_regdump(unsigned long mvpctl)
}
}
printk
(
" TCStatus : %08lx
\n
"
,
tcstatval
);
printk
(
" TCStatus : %08lx
\n
"
,
tcstatval
);
printk
(
" TCBind : %08lx
\n
"
,
read_tc_c0_tcbind
());
printk
(
" TCBind : %08lx
\n
"
,
read_tc_c0_tcbind
());
printk
(
" TCRestart : %08lx
"
,
read_tc_c0_tcrestart
());
printk
(
" TCRestart : %08lx
%pS
\n
"
,
print_symbol
(
"%s
\n
"
,
read_tc_c0_tcrestart
());
read_tc_c0_tcrestart
(),
(
void
*
)
read_tc_c0_tcrestart
());
printk
(
" TCHalt : %08lx
\n
"
,
haltval
);
printk
(
" TCHalt : %08lx
\n
"
,
haltval
);
printk
(
" TCContext : %08lx
\n
"
,
read_tc_c0_tccontext
());
printk
(
" TCContext : %08lx
\n
"
,
read_tc_c0_tccontext
());
if
(
!
haltval
)
if
(
!
haltval
)
...
...
arch/mips/kernel/traps.c
View file @
b012cffe
...
@@ -248,11 +248,11 @@ static void __show_regs(const struct pt_regs *regs)
...
@@ -248,11 +248,11 @@ static void __show_regs(const struct pt_regs *regs)
/*
/*
* Saved cp0 registers
* Saved cp0 registers
*/
*/
printk
(
"epc : %0*lx
"
,
field
,
regs
->
cp0_epc
);
printk
(
"epc : %0*lx
%pS
\n
"
,
field
,
regs
->
cp0_epc
,
print_symbol
(
"%s "
,
regs
->
cp0_epc
);
(
void
*
)
regs
->
cp0_epc
);
printk
(
" %s
\n
"
,
print_tainted
());
printk
(
" %s
\n
"
,
print_tainted
());
printk
(
"ra : %0*lx
"
,
field
,
regs
->
regs
[
31
]);
printk
(
"ra : %0*lx
%pS
\n
"
,
field
,
regs
->
regs
[
31
],
print_symbol
(
"%s
\n
"
,
regs
->
regs
[
31
]);
(
void
*
)
regs
->
regs
[
31
]);
printk
(
"Status: %08x "
,
(
uint32_t
)
regs
->
cp0_status
);
printk
(
"Status: %08x "
,
(
uint32_t
)
regs
->
cp0_status
);
...
...
arch/mips/sgi-ip27/ip27-nmi.c
View file @
b012cffe
#include <linux/kallsyms.h>
#include <linux/kernel.h>
#include <linux/kernel.h>
#include <linux/mmzone.h>
#include <linux/mmzone.h>
#include <linux/nodemask.h>
#include <linux/nodemask.h>
...
@@ -84,13 +83,10 @@ void nmi_cpu_eframe_save(nasid_t nasid, int slice)
...
@@ -84,13 +83,10 @@ void nmi_cpu_eframe_save(nasid_t nasid, int slice)
/*
/*
* Saved cp0 registers
* Saved cp0 registers
*/
*/
printk
(
"epc : %016lx "
,
nr
->
epc
);
printk
(
"epc : %016lx %pS
\n
"
,
nr
->
epc
,
(
void
*
)
nr
->
epc
);
print_symbol
(
"%s "
,
nr
->
epc
);
printk
(
"%s
\n
"
,
print_tainted
());
printk
(
"%s
\n
"
,
print_tainted
());
printk
(
"ErrEPC: %016lx "
,
nr
->
error_epc
);
printk
(
"ErrEPC: %016lx %pS
\n
"
,
nr
->
error_epc
,
(
void
*
)
nr
->
error_epc
);
print_symbol
(
"%s
\n
"
,
nr
->
error_epc
);
printk
(
"ra : %016lx %pS
\n
"
,
nr
->
gpr
[
31
],
(
void
*
)
nr
->
gpr
[
31
]);
printk
(
"ra : %016lx "
,
nr
->
gpr
[
31
]);
print_symbol
(
"%s
\n
"
,
nr
->
gpr
[
31
]);
printk
(
"Status: %08lx "
,
nr
->
sr
);
printk
(
"Status: %08lx "
,
nr
->
sr
);
if
(
nr
->
sr
&
ST0_KX
)
if
(
nr
->
sr
&
ST0_KX
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment