virtio_console: silence a static checker warning
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 8 May 2015 09:16:25 +0000 (12:16 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 May 2015 19:24:35 +0000 (12:24 -0700)
commitdb1700685c0ad2ecb9e42af6a568435a03bbc3fd
treebf16643054df737ac964abdf20d0e251226422c9
parent45c554ece9cffbdf67299b87ba785529276cd2dd
virtio_console: silence a static checker warning

My static checker complains that this sprintf() can overflow but really
it can't.  Just silence the warning by using snprintf().

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/virtio_console.c