From: Amit Shah Date: Mon, 18 Jan 2010 11:05:23 +0000 (+0530) Subject: virtio: console: show error message if hvc_alloc fails for console ports X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=298add723aecd7af461319fe815d935ef2c40d78;p=openwrt%2Fstaging%2Fblogic.git virtio: console: show error message if hvc_alloc fails for console ports Signed-off-by: Amit Shah Signed-off-by: Rusty Russell --- diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c index 2a04daa9189e..a3f1f73bac3a 100644 --- a/drivers/char/virtio_console.c +++ b/drivers/char/virtio_console.c @@ -753,6 +753,8 @@ int init_port_console(struct port *port) port->cons.hvc = hvc_alloc(port->cons.vtermno, 0, &hv_ops, PAGE_SIZE); if (IS_ERR(port->cons.hvc)) { ret = PTR_ERR(port->cons.hvc); + dev_err(port->dev, + "error %d allocating hvc for port\n", ret); port->cons.hvc = NULL; return ret; }