@@ -95,7 +95,6 @@ static int map_patch_area(void *addr, unsigned long text_poke_addr)
95
95
96
96
err = map_kernel_page (text_poke_addr , (pfn << PAGE_SHIFT ), PAGE_KERNEL );
97
97
98
- pr_devel ("Mapped addr %lx with pfn %lx:%d\n" , text_poke_addr , pfn , err );
99
98
if (err )
100
99
return -1 ;
101
100
@@ -130,8 +129,6 @@ static inline int unmap_patch_area(unsigned long addr)
130
129
if (unlikely (!ptep ))
131
130
return - EINVAL ;
132
131
133
- pr_devel ("clearing mm %p, pte %p, addr %lx\n" , & init_mm , ptep , addr );
134
-
135
132
/*
136
133
* In hash, pte_clear flushes the tlb, in radix, we have to
137
134
*/
@@ -190,10 +187,9 @@ static int do_patch_instruction(u32 *addr, ppc_inst_t instr)
190
187
int patch_instruction (u32 * addr , ppc_inst_t instr )
191
188
{
192
189
/* Make sure we aren't patching a freed init section */
193
- if (init_mem_is_free && init_section_contains (addr , 4 )) {
194
- pr_debug ("Skipping init section patching addr: 0x%px\n" , addr );
190
+ if (init_mem_is_free && init_section_contains (addr , 4 ))
195
191
return 0 ;
196
- }
192
+
197
193
return do_patch_instruction (addr , instr );
198
194
}
199
195
NOKPROBE_SYMBOL (patch_instruction );
@@ -411,8 +407,10 @@ static void __init test_trampoline(void)
411
407
asm ("nop;\n" );
412
408
}
413
409
414
- #define check (x ) \
415
- if (!(x)) printk("code-patching: test failed at line %d\n", __LINE__);
410
+ #define check (x ) do { \
411
+ if (!(x)) \
412
+ pr_err("code-patching: test failed at line %d\n", __LINE__); \
413
+ } while (0)
416
414
417
415
static void __init test_branch_iform (void )
418
416
{
@@ -737,7 +735,7 @@ static inline void test_prefixed_patching(void) {}
737
735
738
736
static int __init test_code_patching (void )
739
737
{
740
- printk ( KERN_DEBUG "Running code patching self-tests ...\n" );
738
+ pr_info ( "Running code patching self-tests ...\n" );
741
739
742
740
test_branch_iform ();
743
741
test_branch_bform ();
0 commit comments