mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-08 14:13:53 +00:00
pstore/ram: Standardize module name in ramoops
With both ram.c and ram_core.c built into ramoops.ko, it doesn't make sense to have differing pr_fmt prefixes. This fixes ram_core.c to use the module name (as ram.c already does). Additionally improves region reservation error to include the region name. Signed-off-by: Kees Cook <keescook@chromium.org>
This commit is contained in:
parent
7684bd334d
commit
9ee85b8bd3
@ -12,7 +12,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define pr_fmt(fmt) "persistent_ram: " fmt
|
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
||||||
|
|
||||||
#include <linux/device.h>
|
#include <linux/device.h>
|
||||||
#include <linux/err.h>
|
#include <linux/err.h>
|
||||||
@ -443,7 +443,8 @@ static void *persistent_ram_iomap(phys_addr_t start, size_t size,
|
|||||||
void *va;
|
void *va;
|
||||||
|
|
||||||
if (!request_mem_region(start, size, label ?: "ramoops")) {
|
if (!request_mem_region(start, size, label ?: "ramoops")) {
|
||||||
pr_err("request mem region (0x%llx@0x%llx) failed\n",
|
pr_err("request mem region (%s 0x%llx@0x%llx) failed\n",
|
||||||
|
label ?: "ramoops",
|
||||||
(unsigned long long)size, (unsigned long long)start);
|
(unsigned long long)size, (unsigned long long)start);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user