aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/virtio_console.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/virtio_console.c')
-rw-r--r--drivers/char/virtio_console.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c
index 50754d203310..d2406fe25533 100644
--- a/drivers/char/virtio_console.c
+++ b/drivers/char/virtio_console.c
@@ -1492,8 +1492,8 @@ static int add_port(struct ports_device *portdev, u32 id)
1492 * Finally, create the debugfs file that we can use to 1492 * Finally, create the debugfs file that we can use to
1493 * inspect a port's state at any time 1493 * inspect a port's state at any time
1494 */ 1494 */
1495 sprintf(debugfs_name, "vport%up%u", 1495 snprintf(debugfs_name, sizeof(debugfs_name), "vport%up%u",
1496 port->portdev->vdev->index, id); 1496 port->portdev->vdev->index, id);
1497 port->debugfs_file = debugfs_create_file(debugfs_name, 0444, 1497 port->debugfs_file = debugfs_create_file(debugfs_name, 0444,
1498 pdrvdata.debugfs_dir, 1498 pdrvdata.debugfs_dir,
1499 port, 1499 port,