mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-10 23:29:46 +00:00
drivers: base: Convert dev_printk(KERN_<LEVEL> to dev_<level>(
dev_<level> calls take less code than dev_printk(KERN_<LEVEL> and reducing object size is good. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b1d6d82255
commit
a369a7ebbf
@ -158,7 +158,7 @@ attribute_container_add_device(struct device *dev,
|
|||||||
|
|
||||||
ic = kzalloc(sizeof(*ic), GFP_KERNEL);
|
ic = kzalloc(sizeof(*ic), GFP_KERNEL);
|
||||||
if (!ic) {
|
if (!ic) {
|
||||||
dev_printk(KERN_ERR, dev, "failed to allocate class container\n");
|
dev_err(dev, "failed to allocate class container\n");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -50,8 +50,8 @@ static void devres_log(struct device *dev, struct devres_node *node,
|
|||||||
const char *op)
|
const char *op)
|
||||||
{
|
{
|
||||||
if (unlikely(log_devres))
|
if (unlikely(log_devres))
|
||||||
dev_printk(KERN_ERR, dev, "DEVRES %3s %p %s (%lu bytes)\n",
|
dev_err(dev, "DEVRES %3s %p %s (%lu bytes)\n",
|
||||||
op, node, node->name, (unsigned long)node->size);
|
op, node, node->name, (unsigned long)node->size);
|
||||||
}
|
}
|
||||||
#else /* CONFIG_DEBUG_DEVRES */
|
#else /* CONFIG_DEBUG_DEVRES */
|
||||||
#define set_node_dbginfo(node, n, s) do {} while (0)
|
#define set_node_dbginfo(node, n, s) do {} while (0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user