Skip to contentSkip to conversation

mm/hwpoison: add '#' to hwpoison_inject

PATCH In review Wanpeng Li 2 participants 2 messages Dec 9, 2013 – Dec 10, 2013

Subsystems (2)
lore
Share & tools
lore

Wanpeng Li

author
#0 lore raw

PATCH v2 1/1 mm/hwpoison: add '#' to hwpoison_inject

Changelog:
v1 -> v2:
* remove KERN_INFO in pr_info().

Add '#' to hwpoison_inject just as done in madvise_hwpoison.

---
 mm/hwpoison-inject.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
mm/hwpoison-inject.c +1 -1
index 4c84678..95487c7 100644
@@ -55,7 +55,7 @@ static int hwpoison_inject(void *data, u64 val)
 		return 0;
 
 inject:
-	printk(KERN_INFO "Injecting memory failure at pfn %lx\n", pfn);
+	pr_info("Injecting memory failure at pfn %#lx\n", pfn);
 	return memory_failure(pfn, 18, MF_COUNT_INCREASED);
 }
 
Signature · 7 lines
1.7.5.4

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Reviewed-by on v2 1/1
#1 lore raw
Quoted 17 lines · Wanpeng Li

Changelog:
v1 -> v2:
* remove KERN_INFO in pr_info().

Add '#' to hwpoison_inject just as done in madvise_hwpoison.

---
 mm/hwpoison-inject.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
mm/hwpoison-inject.c +0 -0
index 4c84678..95487c7 100644

mm/hwpoison-inject.c static int hwpoison_inject(void *data, u64 val) · line 60

Quoted 7 lines
mm/hwpoison-inject.c +1 -1
@@ -55,7 +55,7 @@ static int hwpoison_inject(void *data, u64 val)
 		return 0;
 
 inject:
-	printk(KERN_INFO "Injecting memory failure at pfn %lx\n", pfn);
+	pr_info("Injecting memory failure at pfn %#lx\n", pfn);
 	return memory_failure(pfn, 18, MF_COUNT_INCREASED);
 }
Quoted 4 lines
Signature · 2 lines
-- 
1.7.5.4

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>