|
@@ -1168,7 +1168,7 @@ static ssize_t module_sect_show(struct module_attribute *mattr,
|
|
{
|
|
{
|
|
struct module_sect_attr *sattr =
|
|
struct module_sect_attr *sattr =
|
|
container_of(mattr, struct module_sect_attr, mattr);
|
|
container_of(mattr, struct module_sect_attr, mattr);
|
|
- return sprintf(buf, "0x%lx\n", sattr->address);
|
|
|
|
|
|
+ return sprintf(buf, "0x%pK\n", (void *)sattr->address);
|
|
}
|
|
}
|
|
|
|
|
|
static void free_sect_attrs(struct module_sect_attrs *sect_attrs)
|
|
static void free_sect_attrs(struct module_sect_attrs *sect_attrs)
|
|
@@ -3224,7 +3224,7 @@ static int m_show(struct seq_file *m, void *p)
|
|
mod->state == MODULE_STATE_COMING ? "Loading":
|
|
mod->state == MODULE_STATE_COMING ? "Loading":
|
|
"Live");
|
|
"Live");
|
|
/* Used by oprofile and other similar tools. */
|
|
/* Used by oprofile and other similar tools. */
|
|
- seq_printf(m, " 0x%p", mod->module_core);
|
|
|
|
|
|
+ seq_printf(m, " 0x%pK", mod->module_core);
|
|
|
|
|
|
/* Taints info */
|
|
/* Taints info */
|
|
if (mod->taints)
|
|
if (mod->taints)
|