Revision 1ecda02b hw/usb-serial.c
b/hw/usb-serial.c | ||
---|---|---|
565 | 565 |
if (strstart(filename, "vendorid=", &p)) { |
566 | 566 |
vendorid = strtol(p, &e, 16); |
567 | 567 |
if (e == p || (*e && *e != ',' && *e != ':')) { |
568 |
qemu_error("bogus vendor ID %s\n", p);
|
|
568 |
error_report("bogus vendor ID %s", p);
|
|
569 | 569 |
return NULL; |
570 | 570 |
} |
571 | 571 |
filename = e; |
572 | 572 |
} else if (strstart(filename, "productid=", &p)) { |
573 | 573 |
productid = strtol(p, &e, 16); |
574 | 574 |
if (e == p || (*e && *e != ',' && *e != ':')) { |
575 |
qemu_error("bogus product ID %s\n", p);
|
|
575 |
error_report("bogus product ID %s", p);
|
|
576 | 576 |
return NULL; |
577 | 577 |
} |
578 | 578 |
filename = e; |
579 | 579 |
} else { |
580 |
qemu_error("unrecognized serial USB option %s\n", filename);
|
|
580 |
error_report("unrecognized serial USB option %s", filename);
|
|
581 | 581 |
return NULL; |
582 | 582 |
} |
583 | 583 |
while(*filename == ',') |
584 | 584 |
filename++; |
585 | 585 |
} |
586 | 586 |
if (!*filename) { |
587 |
qemu_error("character device specification needed\n");
|
|
587 |
error_report("character device specification needed");
|
|
588 | 588 |
return NULL; |
589 | 589 |
} |
590 | 590 |
filename++; |
Also available in: Unified diff