Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a369a7eb authored by Joe Perches's avatar Joe Perches Committed by Greg Kroah-Hartman
Browse files

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: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b1d6d822
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -158,7 +158,7 @@ attribute_container_add_device(struct device *dev,

		ic = kzalloc(sizeof(*ic), GFP_KERNEL);
		if (!ic) {
			dev_printk(KERN_ERR, dev, "failed to allocate class container\n");
			dev_err(dev, "failed to allocate class container\n");
			continue;
		}

+2 −2
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ static void devres_log(struct device *dev, struct devres_node *node,
		       const char *op)
{
	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);
}
#else /* CONFIG_DEBUG_DEVRES */