mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
Start using the new '%pS' infrastructure to print symbols
This simplifies the code significantly, and was the whole point of the exercise. Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
bce7f793da
commit
7daf705f36
2 changed files with 3 additions and 27 deletions
|
|
@ -431,9 +431,8 @@ static void print_track(const char *s, struct track *t)
|
|||
if (!t->addr)
|
||||
return;
|
||||
|
||||
printk(KERN_ERR "INFO: %s in ", s);
|
||||
__print_symbol("%s", (unsigned long)t->addr);
|
||||
printk(" age=%lu cpu=%u pid=%d\n", jiffies - t->when, t->cpu, t->pid);
|
||||
printk(KERN_ERR "INFO: %s in %pS age=%lu cpu=%u pid=%d\n",
|
||||
s, t->addr, jiffies - t->when, t->cpu, t->pid);
|
||||
}
|
||||
|
||||
static void print_tracking(struct kmem_cache *s, void *object)
|
||||
|
|
|
|||
Loading…
Reference in a new issue