Revision 57285302
b/hw/spapr_vty.c | ||
---|---|---|
58 | 58 |
{ |
59 | 59 |
VIOsPAPRVTYDevice *dev = (VIOsPAPRVTYDevice *)sdev; |
60 | 60 |
|
61 |
if (!dev->chardev) { |
|
62 |
fprintf(stderr, "spapr-vty: Can't create vty without a chardev!\n"); |
|
63 |
exit(1); |
|
64 |
} |
|
65 |
|
|
61 | 66 |
qemu_chr_add_handlers(dev->chardev, vty_can_receive, |
62 | 67 |
vty_receive, NULL, dev); |
63 | 68 |
|
Also available in: Unified diff