diff --git a/examples/tty/serial.c b/examples/tty/serial.c index 31d696d4..bb3ed864 100644 --- a/examples/tty/serial.c +++ b/examples/tty/serial.c @@ -481,7 +481,7 @@ int el60xx_port_init(el60xx_port_t *port, ec_slave_config_t *sc, if (port->max_tx_data_size > 0) { port->tx_data = kmalloc(port->max_tx_data_size, GFP_KERNEL); if (port->tx_data == NULL) { - printk(KERN_ERR PFX "Failed to allocate %u bytes of TX" + printk(KERN_ERR PFX "Failed to allocate %zu bytes of TX" " memory for %s.\n", port->max_tx_data_size, port->name); ret = -ENOMEM; goto out_free_tty;