Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

driver core: Replace printf() specifier and drop unneeded casting

The size_t type has very well established specifier, i.e. "%zu",
use it directly instead of casting to unsigned long with "%lu".

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210401171042.60612-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Andy Shevchenko and committed by
Greg Kroah-Hartman
318c3e00 d7aa44f5

+2 -2
+2 -2
drivers/base/devres.c
··· 58 58 const char *op) 59 59 { 60 60 if (unlikely(log_devres)) 61 - dev_err(dev, "DEVRES %3s %p %s (%lu bytes)\n", 62 - op, node, node->name, (unsigned long)node->size); 61 + dev_err(dev, "DEVRES %3s %p %s (%zu bytes)\n", 62 + op, node, node->name, node->size); 63 63 } 64 64 #else /* CONFIG_DEBUG_DEVRES */ 65 65 #define set_node_dbginfo(node, n, s) do {} while (0)